From ff11af4fbc2948a3a3bc635549c7ac349d249abc Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Tue, 11 Feb 2014 14:59:30 +0100 Subject: QOpenGLWidget and new-style compositing on eglfs Integrate with QOpenGLTextureBlitter, QOpenGLWidget and friends. Change-Id: Ic2867b713a21a3d2820d546174fc9164b3dd220c Reviewed-by: Lars Knoll Reviewed-by: Gunnar Sletta Reviewed-by: Paul Olav Tvete --- src/gui/painting/qplatformbackingstore.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/painting/qplatformbackingstore.h') diff --git a/src/gui/painting/qplatformbackingstore.h b/src/gui/painting/qplatformbackingstore.h index a662a2290b..76fd3d40b4 100644 --- a/src/gui/painting/qplatformbackingstore.h +++ b/src/gui/painting/qplatformbackingstore.h @@ -81,12 +81,14 @@ public: ~QPlatformTextureList(); int count() const; + bool isEmpty() const { return count() == 0; } GLuint textureId(int index) const; QRect geometry(int index) const; void lock(bool on); bool isLocked() const; void appendTexture(GLuint textureId, const QRect &geometry); + void clear(); Q_SIGNALS: void locked(bool); -- cgit v1.2.3