diff options
author | Paul Olav Tvete <paul.tvete@qt.io> | 2018-09-11 13:19:20 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@qt.io> | 2018-09-21 07:00:54 +0000 |
commit | 6c0b10e53ba1ecba8b4da9eefb9bd6b1693cc72f (patch) | |
tree | 205cc8d20271743471a776cd1d8dbb1868395f49 /src/compositor/hardware_integration | |
parent | 89c38de88d9eda9f4f02a8a54f2de33406221d15 (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.h | 1 |
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; |