Changeset View
Changeset View
Standalone View
Standalone View
scene.h
Show First 20 Lines • Show All 230 Lines • ▼ Show 20 Line(s) | 210 | protected: | |||
---|---|---|---|---|---|
231 | // shared implementation, starts painting the window | 231 | // shared implementation, starts painting the window | ||
232 | virtual void paintWindow(Window* w, int mask, QRegion region, WindowQuadList quads); | 232 | virtual void paintWindow(Window* w, int mask, QRegion region, WindowQuadList quads); | ||
233 | // called after all effects had their drawWindow() called | 233 | // called after all effects had their drawWindow() called | ||
234 | virtual void finalDrawWindow(EffectWindowImpl* w, int mask, QRegion region, WindowPaintData& data); | 234 | virtual void finalDrawWindow(EffectWindowImpl* w, int mask, QRegion region, WindowPaintData& data); | ||
235 | // let the scene decide whether it's better to paint more of the screen, eg. in order to allow a buffer swap | 235 | // let the scene decide whether it's better to paint more of the screen, eg. in order to allow a buffer swap | ||
236 | // the default is NOOP | 236 | // the default is NOOP | ||
237 | virtual void extendPaintRegion(QRegion ®ion, bool opaqueFullscreen); | 237 | virtual void extendPaintRegion(QRegion ®ion, bool opaqueFullscreen); | ||
238 | virtual void paintDesktop(int desktop, int mask, const QRegion ®ion, ScreenPaintData &data); | 238 | virtual void paintDesktop(int desktop, int mask, const QRegion ®ion, ScreenPaintData &data); | ||
239 | | ||||
240 | virtual void paintEffectQuickView(EffectQuickView *w) = 0; | ||||
241 | | ||||
239 | // compute time since the last repaint | 242 | // compute time since the last repaint | ||
240 | void updateTimeDiff(); | 243 | void updateTimeDiff(); | ||
241 | // saved data for 2nd pass of optimized screen painting | 244 | // saved data for 2nd pass of optimized screen painting | ||
242 | struct Phase2Data { | 245 | struct Phase2Data { | ||
243 | Window *window = nullptr; | 246 | Window *window = nullptr; | ||
244 | QRegion region; | 247 | QRegion region; | ||
245 | QRegion clip; | 248 | QRegion clip; | ||
246 | int mask = 0; | 249 | int mask = 0; | ||
▲ Show 20 Lines • Show All 441 Lines • Show Last 20 Lines |