summaryrefslogtreecommitdiff
path: root/src/compositor/compositor_api/qwaylandsurface_p.h
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@kdab.com>2016-03-28 12:12:04 +0300
committerGiulio Camuffo <giulio.camuffo@kdab.com>2016-04-18 10:48:11 +0000
commit68f40f95972b857433df424cc16809eebfd77b8f (patch)
tree815ad8e49e25d4c19a3b3d20395b3e89fa30df51 /src/compositor/compositor_api/qwaylandsurface_p.h
parent95d2bff24bc2678da91cfbd210382c3a5af6af8a (diff)
downloadqtwayland-68f40f95972b857433df424cc16809eebfd77b8f.tar.gz
Add API to grab a surface's content
This patch adds a new QWaylandSurfaceGrabber class. The user can use it to grab a surface's content, and get a QImage with the data. Change-Id: I25dd72a8ba39201cd91addbfc976b93ca1e05112 Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandsurface_p.h')
-rw-r--r--src/compositor/compositor_api/qwaylandsurface_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/compositor_api/qwaylandsurface_p.h b/src/compositor/compositor_api/qwaylandsurface_p.h
index 73057c54..63582093 100644
--- a/src/compositor/compositor_api/qwaylandsurface_p.h
+++ b/src/compositor/compositor_api/qwaylandsurface_p.h
@@ -137,7 +137,7 @@ protected:
void setBackBuffer(QtWayland::SurfaceBuffer *buffer, const QRegion &damage);
QtWayland::SurfaceBuffer *createSurfaceBuffer(struct ::wl_resource *buffer);
-protected: //member variables
+public: //member variables
QWaylandCompositor *compositor;
int refCount;
QWaylandClient *client;