diff options
author | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-09-03 13:55:33 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-09-04 16:12:47 +0200 |
commit | 82d713d89638ebd49ed87bf5f66362a93607efd8 (patch) | |
tree | 226289c668a423d77e94daf886830a9faea05d20 /src/compositor/compositor_api/qwaylandview.h | |
parent | 7e9b31ecda04aa3ad5eea737c19cf2f204d208da (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.h | 1 |
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(); |