~azzar1/compiz/fix-1234624

« back to all changes in this revision

Viewing changes to plugins/water/src/water.cpp

  • Committer: Tarmac
  • Author(s): Sam Spilsbury
  • Date: 2013-10-30 20:31:20 UTC
  • mfrom: (3724.5.4 compiz.fix_1024304)
  • Revision ID: tarmac-20131030203120-bxn8whir9ao7rip7
Add support for the GLX_EXT_buffer_age extension on hardware that supports it, which should result in a nice speed-boost due to the fact that we no longer have to abuse fillrate by retaining old frame contents, and instead asking the driver how defined the current frame is. Fixes: https://bugs.launchpad.net/bugs/1024304.

Approved by PS Jenkins bot, Christopher Townsend, Marco Trevisan (Treviño).

Show diffs side-by-side

added added

removed removed

Lines of Context:
317
317
    }
318
318
}
319
319
 
 
320
bool
 
321
WaterScreen::glPaintCompositedOutputRequired ()
 
322
{
 
323
    return true;
 
324
}
 
325
 
320
326
void
321
327
WaterScreen::glPaintCompositedOutput (const CompRegion    &region,
322
328
                                      GLFramebufferObject *fbo,
467
473
        cScreen->preparePaintSetEnabled (this, false);
468
474
        gScreen->glPaintOutputSetEnabled (this, false);
469
475
        gScreen->glPaintCompositedOutputSetEnabled (this, false);
 
476
        gScreen->glPaintCompositedOutputRequiredSetEnabled (this, false);
470
477
        cScreen->donePaintSetEnabled (this, false);
471
478
    }
472
479