Skip to content
  • Emmanuele Bassi's avatar
    stage: Add the NO_CLEAR_ON_PAINT hint · 0cbfabcd
    Emmanuele Bassi authored
    Some apps or some use cases don't need to clear the stage on immediate
    rendering GPUs. A media player playing a fullscreen video or a
    tile-based game, for instance.
    
    These apps are redrawing the whole screen, so we can avoid clearing the
    color buffer when preparing to paint the stage, since there is no
    blending with the stage color being performed.
    
    We can add an private set of hints to ClutterStage, and expose accessors
    for each potential hint; the first hint is the 'no-clear' one.
    
    http://bugzilla.clutter-project.org/show_bug.cgi?id=2058
    0cbfabcd