summaryrefslogtreecommitdiffstats
path: root/src/compositor/compositor_api/qwaylandsurfaceitem.h
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den.exter@jollamobile.com>2015-06-25 12:33:41 +0000
committerAndrew den Exter <andrew.den.exter@qinetic.com.au>2015-06-29 11:32:03 +0000
commit05ea6b992f32443df27e38bdc8b21cf970755b57 (patch)
tree253fbc5cbb85c5737bc36b5e2c0a5761359b1aa5 /src/compositor/compositor_api/qwaylandsurfaceitem.h
parent1a4c9511e66a7d9d6c9a6be19b42c9bd58a112ed (diff)
Prevent QWaylandQuickSurface from holding onto multiple buffers indefinitely.
With a queue of just two buffers BufferAttacher can end up holding references to both after the renderer is stopped starving the client application and causing it to block in the glSwapBuffers until the renderer restarts or the surface is destroyed. Release the current buffer to the client when the renderer is stopped so it can continue. Change-Id: Ica0e13ef78f7e6058e273c26b517a88d07f958c7 Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandsurfaceitem.h')
-rw-r--r--src/compositor/compositor_api/qwaylandsurfaceitem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandsurfaceitem.h b/src/compositor/compositor_api/qwaylandsurfaceitem.h
index 91dc6879b..cb51b6bfb 100644
--- a/src/compositor/compositor_api/qwaylandsurfaceitem.h
+++ b/src/compositor/compositor_api/qwaylandsurfaceitem.h
@@ -125,7 +125,9 @@ protected:
private:
friend class QWaylandSurfaceNode;
+ friend class QWaylandQuickSurface;
void init(QWaylandQuickSurface *);
+ void updateTexture(bool changed);
static QMutex *mutex;