summaryrefslogtreecommitdiffstats
path: root/src/compositor/compositor_api/qwaylandview.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@theqtcompany.com>2015-09-03 13:55:33 +0200
committerJørgen Lind <jorgen.lind@theqtcompany.com>2015-09-04 16:12:47 +0200
commit82d713d89638ebd49ed87bf5f66362a93607efd8 (patch)
tree226289c668a423d77e94daf886830a9faea05d20 /src/compositor/compositor_api/qwaylandview.h
parent7e9b31ecda04aa3ad5eea737c19cf2f204d208da (diff)
Make it possible to discard currentBuffer of a view
This will be convenient if there is a view which copies the currentBuffer to a cache and then wants to release the ref to the buffer Change-Id: I0b7bbb4bc22c420fdf0d1af4bb1bbf0a4f888bc8
Diffstat (limited to 'src/compositor/compositor_api/qwaylandview.h')
-rw-r--r--src/compositor/compositor_api/qwaylandview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandview.h b/src/compositor/compositor_api/qwaylandview.h
index eddcdea49..bc7eea764 100644
--- a/src/compositor/compositor_api/qwaylandview.h
+++ b/src/compositor/compositor_api/qwaylandview.h
@@ -81,6 +81,7 @@ public:
virtual void attach(const QWaylandBufferRef &ref, const QRegion &damage);
virtual bool advance();
+ virtual void discardCurrentBuffer();
virtual QWaylandBufferRef currentBuffer();
virtual QRegion currentDamage();