~ubuntu-branches/ubuntu/precise/kde-workspace/precise-security

« back to all changes in this revision

Viewing changes to kwin/effects.cpp

Tags: upstream-4.7.2
Import upstream version 4.7.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
void EffectsHandlerImpl::prePaintScreen(ScreenPrePaintData& data, int time)
201
201
{
202
202
    if (current_paint_screen < loaded_effects.size()) {
203
 
        loaded_effects[current_paint_screen++].second->prePaintScreen(data, time);
 
203
        loaded_effects.at(current_paint_screen++).second->prePaintScreen(data, time);
204
204
        --current_paint_screen;
205
205
    }
206
206
    // no special final code
209
209
void EffectsHandlerImpl::paintScreen(int mask, QRegion region, ScreenPaintData& data)
210
210
{
211
211
    if (current_paint_screen < loaded_effects.size()) {
212
 
        loaded_effects[current_paint_screen++].second->paintScreen(mask, region, data);
 
212
        loaded_effects.at(current_paint_screen++).second->paintScreen(mask, region, data);
213
213
        --current_paint_screen;
214
214
    } else
215
215
        scene->finalPaintScreen(mask, region, data);
218
218
void EffectsHandlerImpl::postPaintScreen()
219
219
{
220
220
    if (current_paint_screen < loaded_effects.size()) {
221
 
        loaded_effects[current_paint_screen++].second->postPaintScreen();
 
221
        loaded_effects.at(current_paint_screen++).second->postPaintScreen();
222
222
        --current_paint_screen;
223
223
    }
224
224
    // no special final code
227
227
void EffectsHandlerImpl::prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time)
228
228
{
229
229
    if (current_paint_window < loaded_effects.size()) {
230
 
        loaded_effects[current_paint_window++].second->prePaintWindow(w, data, time);
 
230
        loaded_effects.at(current_paint_window++).second->prePaintWindow(w, data, time);
231
231
        --current_paint_window;
232
232
    }
233
233
    // no special final code
236
236
void EffectsHandlerImpl::paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data)
237
237
{
238
238
    if (current_paint_window < loaded_effects.size()) {
239
 
        loaded_effects[current_paint_window++].second->paintWindow(w, mask, region, data);
 
239
        loaded_effects.at(current_paint_window++).second->paintWindow(w, mask, region, data);
240
240
        --current_paint_window;
241
241
    } else
242
242
        scene->finalPaintWindow(static_cast<EffectWindowImpl*>(w), mask, region, data);
245
245
void EffectsHandlerImpl::paintEffectFrame(EffectFrame* frame, QRegion region, double opacity, double frameOpacity)
246
246
{
247
247
    if (current_paint_effectframe < loaded_effects.size()) {
248
 
        loaded_effects[current_paint_effectframe++].second->paintEffectFrame(frame, region, opacity, frameOpacity);
 
248
        loaded_effects.at(current_paint_effectframe++).second->paintEffectFrame(frame, region, opacity, frameOpacity);
249
249
        --current_paint_effectframe;
250
250
    } else {
251
251
        const EffectFrameImpl* frameImpl = static_cast<const EffectFrameImpl*>(frame);
256
256
void EffectsHandlerImpl::postPaintWindow(EffectWindow* w)
257
257
{
258
258
    if (current_paint_window < loaded_effects.size()) {
259
 
        loaded_effects[current_paint_window++].second->postPaintWindow(w);
 
259
        loaded_effects.at(current_paint_window++).second->postPaintWindow(w);
260
260
        --current_paint_window;
261
261
    }
262
262
    // no special final code
273
273
void EffectsHandlerImpl::drawWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data)
274
274
{
275
275
    if (current_draw_window < loaded_effects.size()) {
276
 
        loaded_effects[current_draw_window++].second->drawWindow(w, mask, region, data);
 
276
        loaded_effects.at(current_draw_window++).second->drawWindow(w, mask, region, data);
277
277
        --current_draw_window;
278
278
    } else
279
279
        scene->finalDrawWindow(static_cast<EffectWindowImpl*>(w), mask, region, data);
282
282
void EffectsHandlerImpl::buildQuads(EffectWindow* w, WindowQuadList& quadList)
283
283
{
284
284
    if (current_build_quads < loaded_effects.size()) {
285
 
        loaded_effects[current_build_quads++].second->buildQuads(w, quadList);
 
285
        loaded_effects.at(current_build_quads++).second->buildQuads(w, quadList);
286
286
        --current_build_quads;
287
287
    }
288
288
}