Changeset View
Changeset View
Standalone View
Standalone View
scene.cpp
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Line(s) | |||||
100 | 100 | | |||
101 | Scene::~Scene() | 101 | Scene::~Scene() | ||
102 | { | 102 | { | ||
103 | Q_ASSERT(m_windows.isEmpty()); | 103 | Q_ASSERT(m_windows.isEmpty()); | ||
104 | } | 104 | } | ||
105 | 105 | | |||
106 | // returns mask and possibly modified region | 106 | // returns mask and possibly modified region | ||
107 | void Scene::paintScreen(int* mask, const QRegion &damage, const QRegion &repaint, | 107 | void Scene::paintScreen(int* mask, const QRegion &damage, const QRegion &repaint, | ||
108 | QRegion *updateRegion, QRegion *validRegion, const QMatrix4x4 &projection, const QRect &outputGeometry) | 108 | QRegion *updateRegion, QRegion *validRegion, int screenRotation, const QMatrix4x4 &projection, const QRect &outputGeometry) | ||
109 | { | 109 | { | ||
110 | const QSize &screenSize = screens()->size(); | 110 | const QSize &screenSize = screens()->size(); | ||
111 | const QRegion displayRegion(0, 0, screenSize.width(), screenSize.height()); | 111 | const QRegion displayRegion(0, 0, screenSize.width(), screenSize.height()); | ||
112 | *mask = (damage == displayRegion) ? 0 : PAINT_SCREEN_REGION; | 112 | *mask = (damage == displayRegion) ? 0 : PAINT_SCREEN_REGION; | ||
113 | 113 | | |||
114 | updateTimeDiff(); | 114 | updateTimeDiff(); | ||
115 | // preparation step | 115 | // preparation step | ||
116 | static_cast<EffectsHandlerImpl*>(effects)->startPaint(); | 116 | static_cast<EffectsHandlerImpl*>(effects)->startPaint(); | ||
Show All 23 Lines | |||||
140 | 140 | | |||
141 | painted_region = region; | 141 | painted_region = region; | ||
142 | repaint_region = repaint; | 142 | repaint_region = repaint; | ||
143 | 143 | | |||
144 | if (*mask & PAINT_SCREEN_BACKGROUND_FIRST) { | 144 | if (*mask & PAINT_SCREEN_BACKGROUND_FIRST) { | ||
145 | paintBackground(region); | 145 | paintBackground(region); | ||
146 | } | 146 | } | ||
147 | 147 | | |||
148 | ScreenPaintData data(projection, outputGeometry); | 148 | ScreenPaintData data(projection, screenRotation, outputGeometry); | ||
149 | effects->paintScreen(*mask, region, data); | 149 | effects->paintScreen(*mask, region, data); | ||
150 | 150 | | |||
151 | foreach (Window *w, stacking_order) { | 151 | foreach (Window *w, stacking_order) { | ||
152 | effects->postPaintWindow(effectWindow(w)); | 152 | effects->postPaintWindow(effectWindow(w)); | ||
153 | } | 153 | } | ||
154 | 154 | | |||
155 | effects->postPaintScreen(); | 155 | effects->postPaintScreen(); | ||
156 | 156 | | |||
▲ Show 20 Lines • Show All 1001 Lines • Show Last 20 Lines |