Changeset View
Changeset View
Standalone View
Standalone View
src/server/surface_interface_p.h
Show All 27 Lines | |||||
28 | #include <wayland-server.h> | 28 | #include <wayland-server.h> | ||
29 | 29 | | |||
30 | namespace KWayland | 30 | namespace KWayland | ||
31 | { | 31 | { | ||
32 | namespace Server | 32 | namespace Server | ||
33 | { | 33 | { | ||
34 | 34 | | |||
35 | class IdleInhibitorInterface; | 35 | class IdleInhibitorInterface; | ||
36 | class SurfaceRole; | ||||
36 | 37 | | |||
37 | class SurfaceInterface::Private : public Resource::Private | 38 | class SurfaceInterface::Private : public Resource::Private | ||
38 | { | 39 | { | ||
39 | public: | 40 | public: | ||
40 | struct State { | 41 | struct State { | ||
41 | QRegion damage = QRegion(); | 42 | QRegion damage = QRegion(); | ||
42 | QRegion bufferDamage = QRegion(); | 43 | QRegion bufferDamage = QRegion(); | ||
43 | QRegion opaque = QRegion(); | 44 | QRegion opaque = QRegion(); | ||
Show All 36 Lines | |||||
80 | void setSlide(const QPointer<SlideInterface> &slide); | 81 | void setSlide(const QPointer<SlideInterface> &slide); | ||
81 | void installPointerConstraint(LockedPointerInterface *lock); | 82 | void installPointerConstraint(LockedPointerInterface *lock); | ||
82 | void installPointerConstraint(ConfinedPointerInterface *confinement); | 83 | void installPointerConstraint(ConfinedPointerInterface *confinement); | ||
83 | void installIdleInhibitor(IdleInhibitorInterface *inhibitor); | 84 | void installIdleInhibitor(IdleInhibitorInterface *inhibitor); | ||
84 | 85 | | |||
85 | void commitSubSurface(); | 86 | void commitSubSurface(); | ||
86 | void commit(); | 87 | void commit(); | ||
87 | 88 | | |||
89 | SurfaceRole *role = nullptr; | ||||
90 | | ||||
88 | State current; | 91 | State current; | ||
89 | State pending; | 92 | State pending; | ||
90 | State subSurfacePending; | 93 | State subSurfacePending; | ||
91 | QPointer<SubSurfaceInterface> subSurface; | 94 | QPointer<SubSurfaceInterface> subSurface; | ||
92 | QRegion trackedDamage; | 95 | QRegion trackedDamage; | ||
93 | 96 | | |||
94 | // workaround for https://bugreports.qt.io/browse/QTBUG-52192 | 97 | // workaround for https://bugreports.qt.io/browse/QTBUG-52192 | ||
95 | // A subsurface needs to be considered mapped even if it doesn't have a buffer attached | 98 | // A subsurface needs to be considered mapped even if it doesn't have a buffer attached | ||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |