diff options
author | Gunnar Sletta <gunnar.sletta@jollamobile.com> | 2014-03-03 21:02:30 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-05 19:10:43 +0100 |
commit | 6f15b9102afb8694679f4c7648d0effdac4dd051 (patch) | |
tree | 9437ad20faed07e4cb21334eec1994b781d7a1fe /src/quick/scenegraph/qsgthreadedrenderloop_p.h | |
parent | 808f17756887d2fc95d526ee4aec741cb5730fad (diff) |
Reset the expose cycle when polishAndSync aborts.
On platforms with misbehaving expose behavior, we will get
and exposure, even though the window is not renderable.
This results in the renderthread being in the "wait for polish"
state while the GUI thread goes back to "no state". Check
for this and reset render thread's expose cycle when it
is hit.
Task-number: QTBUG-37201
Change-Id: I6a6c89d9016301ff19443f88a2c182012b4eb65f
Reviewed-by: Ulf Hermann <ulf.hermann@digia.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgthreadedrenderloop_p.h')
-rw-r--r-- | src/quick/scenegraph/qsgthreadedrenderloop_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgthreadedrenderloop_p.h b/src/quick/scenegraph/qsgthreadedrenderloop_p.h index 5943d0bd08..e142f7f2c8 100644 --- a/src/quick/scenegraph/qsgthreadedrenderloop_p.h +++ b/src/quick/scenegraph/qsgthreadedrenderloop_p.h @@ -102,7 +102,7 @@ private: void startOrStopAnimationTimer(); void maybePostPolishRequest(Window *w); void waitForReleaseComplete(); - void polishAndSync(Window *w); + bool polishAndSync(Window *w); void maybeUpdate(Window *window); void handleExposure(Window *w); |