It is a better idea to use one for loop instead of using three nested for loops. We do not need to update the transformation of views according to the scenegraph. The important thing is that every visible view is updated before commit_changes function returns. The first if statement checks, if the view is on the currently rendered scenegraph. The second if statement checks, if the view's layer or surface is visible. These checks ensure that we do not update the transformation matrix of a view, which is not visible on the screen. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> [Pekka: minor whitespace fix] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>dev
parent
1b92ba20ac
commit
27799355a9
Loading…
Reference in new issue