summaryrefslogtreecommitdiffstats
path: root/src/compositor/compositor_api/qwaylandview_p.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@theqtcompany.com>2015-09-18 12:32:26 +0200
committerPaul Olav Tvete <paul.tvete@theqtcompany.com>2015-09-18 14:50:19 +0000
commitdea335f03ac4ce0a28cb75be76b598727b073ef6 (patch)
tree47e45548d75d910cdda2ccf9b25e2b6cb6e3b65d /src/compositor/compositor_api/qwaylandview_p.h
parent65d2daa799f69f995f1496863311fe338a89ee42 (diff)
Add a DiscardFontBuffers property to QWaylandView
This is an optimisation property which can be set on a view. If you have two views for a surface, then the frontBuffer will be released first when the last view has released the frontBuffer. With this option all views with this option set to true will discard the frontBuffer when the throtlingView discards its frontbuffer Change-Id: Id628ec60830549ea930c1fff950501de2b073e48 Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandview_p.h')
-rw-r--r--src/compositor/compositor_api/qwaylandview_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandview_p.h b/src/compositor/compositor_api/qwaylandview_p.h
index a4a75a6cb..1b5fc53e8 100644
--- a/src/compositor/compositor_api/qwaylandview_p.h
+++ b/src/compositor/compositor_api/qwaylandview_p.h
@@ -61,6 +61,7 @@ public:
, bufferLock(false)
, broadcastRequestedPositionChanged(false)
, forceAdvanceSucceed(false)
+ , discardFrontBuffers(false)
{ }
void markSurfaceAsDestroyed(QWaylandSurface *surface);
@@ -77,6 +78,7 @@ public:
bool bufferLock;
bool broadcastRequestedPositionChanged;
bool forceAdvanceSucceed;
+ bool discardFrontBuffers;
};
QT_END_NAMESPACE