Changeset View
Changeset View
Standalone View
Standalone View
scene_qpainter.h
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Line(s) | |||||
151 | 151 | | |||
152 | class QPainterWindowPixmap : public WindowPixmap | 152 | class QPainterWindowPixmap : public WindowPixmap | ||
153 | { | 153 | { | ||
154 | public: | 154 | public: | ||
155 | explicit QPainterWindowPixmap(Scene::Window *window); | 155 | explicit QPainterWindowPixmap(Scene::Window *window); | ||
156 | virtual ~QPainterWindowPixmap(); | 156 | virtual ~QPainterWindowPixmap(); | ||
157 | virtual void create() override; | 157 | virtual void create() override; | ||
158 | 158 | | |||
159 | bool update(const QRegion &damage); | 159 | void updateBuffer() override; | ||
160 | const QImage &image(); | 160 | const QImage &image(); | ||
161 | | ||||
162 | protected: | ||||
163 | WindowPixmap *createChild(const QPointer<KWayland::Server::SubSurfaceInterface> &subSurface) override; | ||||
161 | private: | 164 | private: | ||
165 | explicit QPainterWindowPixmap(const QPointer<KWayland::Server::SubSurfaceInterface> &subSurface, WindowPixmap *parent); | ||||
162 | QImage m_image; | 166 | QImage m_image; | ||
163 | }; | 167 | }; | ||
164 | 168 | | |||
165 | class QPainterEffectFrame : public Scene::EffectFrame | 169 | class QPainterEffectFrame : public Scene::EffectFrame | ||
166 | { | 170 | { | ||
167 | public: | 171 | public: | ||
168 | QPainterEffectFrame(EffectFrameImpl *frame, SceneQPainter *scene); | 172 | QPainterEffectFrame(EffectFrameImpl *frame, SceneQPainter *scene); | ||
169 | virtual ~QPainterEffectFrame(); | 173 | virtual ~QPainterEffectFrame(); | ||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |