Add QQuickCanvas::update()
authorGunnar Sletta <gunnar.sletta@nokia.com>
Wed, 16 May 2012 18:16:07 +0000 (20:16 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 22 May 2012 18:04:28 +0000 (20:04 +0200)
commit6a942251044d1e74d6ae94914ee0383d7ef763e5
tree6bb77e2e890bd081a818cf9208b8d511159037fe
parent250bc562d389fa00306719e420282aa3dbb36d9b
Add QQuickCanvas::update()

We would like to make a distinction between QQuickItem::update()
which triggers updatePaintNode() to synchronize the scene
graph and requesting the toplevel QQuickCanvas to be repainted.

If we have this distinction in place it is possible for the
scene graph to detect that the scene is unchanged and avoid
rendering unless the user has explicitely asked for the
canvas to be repainted, which is often the case when hooking
into QQuickCanvas::beforeRender().

Change-Id: Ibe77f58423593deb217ef9f8082fa12009f45daf
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/quick/items/qquickcanvas.cpp
src/quick/items/qquickcanvas.h
src/quick/items/qquickitem.cpp
src/quick/items/qquickwindowmanager.cpp
src/quick/items/qquickwindowmanager_p.h