summaryrefslogtreecommitdiffstats
path: root/src/client/hardwareintegration
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-08-22 12:41:42 +0200
committerLaszlo Agocs <laszlo.agocs@digia.com>2014-08-25 11:50:32 +0200
commitb743fc7a1e6ee680ca89ae17fb6b521178fd09a9 (patch)
tree7f382058a662094671a65bf56b124d2807e707f6 /src/client/hardwareintegration
parentb98218587757699a2b17cee724b81ca8ea6b402d (diff)
Support RasterGLSurface windows
In an attempt to make QOpenGLWidget and QQuickWidget working on Wayland. Since Qt 5.3 all widget windows are of type RasterGLSurface (given that the plugin reports this capability which wayland will, with this patch). Such a window can behave either like a raster or an OpenGL window. This concept maps badly to platform plugins that have a rigid separation between raster and OpenGL platform window implementations. From now on, the OpenGL window implementation, that is used pretty much always, except for raw RasterSurface windows, must be prepared to behave like a raster window too, which involves having a backingstore. Change-Id: I0226704b8d5893843fcae68059c5fe9ad2f5e761 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src/client/hardwareintegration')
-rw-r--r--src/client/hardwareintegration/qwaylandclientbufferintegration_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/hardwareintegration/qwaylandclientbufferintegration_p.h b/src/client/hardwareintegration/qwaylandclientbufferintegration_p.h
index 7d79f3263..be594984b 100644
--- a/src/client/hardwareintegration/qwaylandclientbufferintegration_p.h
+++ b/src/client/hardwareintegration/qwaylandclientbufferintegration_p.h
@@ -62,6 +62,8 @@ public:
virtual void initialize(QWaylandDisplay *display) = 0;
+ virtual bool isValid() const { return true; }
+
virtual bool supportsThreadedOpenGL() const { return false; }
virtual QWaylandWindow *createEglWindow(QWindow *window) = 0;