aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickwindowmanager.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2012-05-16 20:16:07 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-22 20:04:28 +0200
commit6a942251044d1e74d6ae94914ee0383d7ef763e5 (patch)
tree6bb77e2e890bd081a818cf9208b8d511159037fe /src/quick/items/qquickwindowmanager.cpp
parent250bc562d389fa00306719e420282aa3dbb36d9b (diff)
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>
Diffstat (limited to 'src/quick/items/qquickwindowmanager.cpp')
-rw-r--r--src/quick/items/qquickwindowmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/items/qquickwindowmanager.cpp b/src/quick/items/qquickwindowmanager.cpp
index bef90816a2..f584209e42 100644
--- a/src/quick/items/qquickwindowmanager.cpp
+++ b/src/quick/items/qquickwindowmanager.cpp
@@ -188,6 +188,7 @@ public:
void resize(QQuickCanvas *canvas, const QSize &size);
void handleDeferredUpdate();
void maybeUpdate(QQuickCanvas *canvas);
+ void update(QQuickCanvas *canvas) { maybeUpdate(canvas); } // identical for this implementation
void wakeup();
void startRendering();
@@ -297,6 +298,7 @@ public:
void wakeup();
void maybeUpdate(QQuickCanvas *canvas);
+ void update(QQuickCanvas *canvas) { maybeUpdate(canvas); } // identical for this implementation.
void releaseResources() { }