summaryrefslogtreecommitdiffstats
path: root/src/compositor/hardware_integration
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2018-09-11 13:19:20 +0200
committerPaul Olav Tvete <paul.tvete@qt.io>2018-09-21 07:00:54 +0000
commit6c0b10e53ba1ecba8b4da9eefb9bd6b1693cc72f (patch)
tree205cc8d20271743471a776cd1d8dbb1868395f49 /src/compositor/hardware_integration
parent89c38de88d9eda9f4f02a8a54f2de33406221d15 (diff)
Add virtual QtWayland::ServerBuffer::bufferInUse()
This allows the compositor to reclaim unused graphics memory when a buffer is no longer used by clients. Change-Id: Ia0269608019c5120da8c091c81e165411b563554 Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'src/compositor/hardware_integration')
-rw-r--r--src/compositor/hardware_integration/qwlserverbufferintegration_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compositor/hardware_integration/qwlserverbufferintegration_p.h b/src/compositor/hardware_integration/qwlserverbufferintegration_p.h
index c27fd4e44..7d8901d58 100644
--- a/src/compositor/hardware_integration/qwlserverbufferintegration_p.h
+++ b/src/compositor/hardware_integration/qwlserverbufferintegration_p.h
@@ -82,6 +82,7 @@ public:
virtual ~ServerBuffer();
virtual struct ::wl_resource *resourceForClient(struct ::wl_client *) = 0;
+ virtual bool bufferInUse() { return true; }
virtual QOpenGLTexture *toOpenGlTexture() = 0;