Changeset View
Changeset View
Standalone View
Standalone View
scene.h
Show First 20 Lines • Show All 220 Lines • ▼ Show 20 Line(s) | 210 | protected: | |||
---|---|---|---|---|---|
221 | void finalPaintScreen(int mask, QRegion region, ScreenPaintData& data); | 221 | void finalPaintScreen(int mask, QRegion region, ScreenPaintData& data); | ||
222 | // shared implementation of painting the screen in the generic | 222 | // shared implementation of painting the screen in the generic | ||
223 | // (unoptimized) way | 223 | // (unoptimized) way | ||
224 | virtual void paintGenericScreen(int mask, ScreenPaintData data); | 224 | virtual void paintGenericScreen(int mask, ScreenPaintData data); | ||
225 | // shared implementation of painting the screen in an optimized way | 225 | // shared implementation of painting the screen in an optimized way | ||
226 | virtual void paintSimpleScreen(int mask, QRegion region); | 226 | virtual void paintSimpleScreen(int mask, QRegion region); | ||
227 | // paint the background (not the desktop background - the whole background) | 227 | // paint the background (not the desktop background - the whole background) | ||
228 | virtual void paintBackground(QRegion region) = 0; | 228 | virtual void paintBackground(QRegion region) = 0; | ||
229 | | ||||
230 | /** | ||||
231 | * Notifies about starting to paint. | ||||
232 | * | ||||
233 | * @p damage contains the reported damage as suggested by windows and effects on prepaint calls. | ||||
234 | */ | ||||
235 | virtual void aboutToStartPainting(const QRegion &damage); | ||||
229 | // called after all effects had their paintWindow() called | 236 | // called after all effects had their paintWindow() called | ||
230 | void finalPaintWindow(EffectWindowImpl* w, int mask, QRegion region, WindowPaintData& data); | 237 | void finalPaintWindow(EffectWindowImpl* w, int mask, QRegion region, WindowPaintData& data); | ||
231 | // shared implementation, starts painting the window | 238 | // shared implementation, starts painting the window | ||
232 | virtual void paintWindow(Window* w, int mask, QRegion region, WindowQuadList quads); | 239 | virtual void paintWindow(Window* w, int mask, QRegion region, WindowQuadList quads); | ||
233 | // called after all effects had their drawWindow() called | 240 | // called after all effects had their drawWindow() called | ||
234 | virtual void finalDrawWindow(EffectWindowImpl* w, int mask, QRegion region, WindowPaintData& data); | 241 | 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 | 242 | // 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 | 243 | // the default is NOOP | ||
▲ Show 20 Lines • Show All 465 Lines • Show Last 20 Lines |