diff options
author | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2015-10-06 15:35:10 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2015-10-12 10:26:59 +0000 |
commit | 44b920f53b417d7792121e390e40fe89f37199bc (patch) | |
tree | a5420e3e0058812f1491a02600aaeec102337416 /src/compositor | |
parent | 3c085ac31bed9ab93ada140ebfd2489ad1921a50 (diff) |
A surface buffer has content iff it has a buffer
Change-Id: I357097740a50b677b85e1708ec440da03573d2d2
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/compositor')
-rw-r--r-- | src/compositor/wayland_wrapper/qwlsurfacebuffer_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/wayland_wrapper/qwlsurfacebuffer_p.h b/src/compositor/wayland_wrapper/qwlsurfacebuffer_p.h index 5a0185638..2992a766c 100644 --- a/src/compositor/wayland_wrapper/qwlsurfacebuffer_p.h +++ b/src/compositor/wayland_wrapper/qwlsurfacebuffer_p.h @@ -94,7 +94,7 @@ public: QImage image() const; void bindToTexture() const; - static bool hasContent(SurfaceBuffer *buffer) { return buffer && buffer->isRegisteredWithBuffer(); } + static bool hasContent(SurfaceBuffer *buffer) { return buffer && buffer->waylandBufferHandle(); } private: void ref(); void deref(); |