diff options
author | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-08-17 11:51:33 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-08-28 13:10:33 +0200 |
commit | e38e7cf94d2c66d0562edaafe8ece708c191cbde (patch) | |
tree | 040370814c1ff3bd8b2e70f2d7277b4dcb08e361 /src/compositor/compositor_api/qwaylandsurface_p.h | |
parent | 8dc36b6e0269cb51ce53c203ebb53cfa97854c8e (diff) |
Move ref and unref from QWaylandSurface to private
There shouldn't be a need to call these functions manually, and if there
is then their available in the private implementation.
Also removed some relay functions in QWaylandSurface
Change-Id: I18944c5f1fe87a070baf0c19f1b48aec796774d7
Diffstat (limited to 'src/compositor/compositor_api/qwaylandsurface_p.h')
-rw-r--r-- | src/compositor/compositor_api/qwaylandsurface_p.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/compositor/compositor_api/qwaylandsurface_p.h b/src/compositor/compositor_api/qwaylandsurface_p.h index 2b96decf9..8ed73f94a 100644 --- a/src/compositor/compositor_api/qwaylandsurface_p.h +++ b/src/compositor/compositor_api/qwaylandsurface_p.h @@ -80,25 +80,18 @@ public: QWaylandSurfacePrivate(QWaylandClient *client, quint32 id, int version, QWaylandCompositor *compositor); ~QWaylandSurfacePrivate(); + void ref(); + void deref(); + void refView(QWaylandView *view); void derefView(QWaylandView *view); - static QWaylandSurfacePrivate *fromResource(struct ::wl_resource *resource) - { return static_cast<QWaylandSurfacePrivate *>(Resource::fromResource(resource)->surface_object); } - - bool mapped() const { return QtWayland::SurfaceBuffer::hasContent(buffer); } - using QtWaylandServer::wl_surface::resource; void setSize(const QSize &size); - void sendFrameCallback(); void removeFrameCallback(QtWayland::FrameCallback *callback); - void frameStarted(); - - QWaylandSurface::Origin origin() const { return buffer ? buffer->origin() : QWaylandSurface::OriginTopLeft; } - void notifyViewsAboutDestruction(); void setInputPanelSurface(QtWayland::InputPanelSurface *ips) { inputPanelSurface = ips; } @@ -155,6 +148,7 @@ protected: //member variables QSize size; bool isCursorSurface; bool destroyed; + bool mapped; Qt::ScreenOrientation contentOrientation; QWindow::Visibility visibility; |