summaryrefslogtreecommitdiffstats
path: root/src/compositor/compositor_api/qwaylandsurface_p.h
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2016-04-28 12:09:13 +0200
committerJohan Helsing <johan.helsing@qt.io>2016-04-29 11:37:32 +0000
commit32a09df9a1b42806be0fd82a40f5837a22cfa52c (patch)
tree65e2b4ba3e6c0277b9da74382231d5f16dee8f28 /src/compositor/compositor_api/qwaylandsurface_p.h
parent3004d09437aca95544be88f60bae9b3f1d412a63 (diff)
Compositor API: Add bufferScale property to QWaylandSurface
Change-Id: I1d4e4b65e5a58e3f314551bb10226fa58650becb Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandsurface_p.h')
-rw-r--r--src/compositor/compositor_api/qwaylandsurface_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandsurface_p.h b/src/compositor/compositor_api/qwaylandsurface_p.h
index d8b289c63..e37179cc6 100644
--- a/src/compositor/compositor_api/qwaylandsurface_p.h
+++ b/src/compositor/compositor_api/qwaylandsurface_p.h
@@ -100,6 +100,7 @@ public:
using QtWaylandServer::wl_surface::resource;
void setSize(const QSize &size);
+ void setBufferScale(int bufferScale);
void removeFrameCallback(QtWayland::FrameCallback *callback);
@@ -131,6 +132,7 @@ protected:
struct wl_resource *region) Q_DECL_OVERRIDE;
void surface_commit(Resource *resource) Q_DECL_OVERRIDE;
void surface_set_buffer_transform(Resource *resource, int32_t transform) Q_DECL_OVERRIDE;
+ void surface_set_buffer_scale(Resource *resource, int32_t bufferScale) Q_DECL_OVERRIDE;
void setBackBuffer(QtWayland::SurfaceBuffer *buffer, const QRegion &damage);
QtWayland::SurfaceBuffer *createSurfaceBuffer(struct ::wl_resource *buffer);
@@ -151,6 +153,7 @@ public: //member variables
QPoint offset;
bool newlyAttached;
QRegion inputRegion;
+ int bufferScale;
} pending;
QPoint lastLocalMousePos;
@@ -165,6 +168,7 @@ public: //member variables
QVector<QtWayland::SurfaceBuffer *> bufferPool;
QSize size;
+ int bufferScale;
bool isCursorSurface;
bool destroyed;
bool mapped;