diff options
author | Gunnar Sletta <gunnar@sletta.org> | 2014-09-17 10:08:09 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar@sletta.org> | 2014-09-17 14:10:15 +0200 |
commit | 428b676d84c5576cbbaf549381f47b73e2c9b6aa (patch) | |
tree | 5e781b03bf8d9f7655f3ec7bd409507426ec8cf9 /src/quick/scenegraph/qsgthreadedrenderloop_p.h | |
parent | 401c4e2e5eb97c221bc7d8ca36cf45aea0f8255a (diff) |
Sync QQuickWindow::update() up with polishAndSync().
When calling QQuickWindow::update() on the GUI thread, we would
immediately flag the render thread that a repaint was needed and then
schedule a polishAndSync. If the render thread completed the current
frame before the GUI thread got to polishAndSync, it would repaint
right away without syncing with GUI first.
Instead of sending the repaint right away, register the need for a
full repaint in the window and set it as part of the next sync phase.
Change-Id: Ia731fb46724cc79f5391422213b069de9362d002
Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgthreadedrenderloop_p.h')
-rw-r--r-- | src/quick/scenegraph/qsgthreadedrenderloop_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgthreadedrenderloop_p.h b/src/quick/scenegraph/qsgthreadedrenderloop_p.h index 0e4da27fc6..82f314a6af 100644 --- a/src/quick/scenegraph/qsgthreadedrenderloop_p.h +++ b/src/quick/scenegraph/qsgthreadedrenderloop_p.h @@ -82,6 +82,7 @@ private: QSurfaceFormat actualWindowFormat; int timerId; uint updateDuringSync : 1; + uint forceRenderPass : 1; }; friend class QSGRenderThread; |