backends: Flag that the frame attempted direct scanout
We need this hint whether direct scanout succeeds or fails because it's the mechanism by which we will tell the clock to enforce double buffering, thus making direct scanout possible on future frames. Triple buffering will be disabled until such time that direct scanout is not being attempted. Signed-off-by: Mingi Sung <sungmg@saltyming.net>
This commit is contained in:
parent
8eff581c4b
commit
6b62ab7fbc
1 changed files with 2 additions and 0 deletions
|
@ -774,6 +774,8 @@ meta_stage_impl_redraw_view (ClutterStageWindow *stage_window,
|
||||||
{
|
{
|
||||||
g_autoptr (GError) error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
|
clutter_frame_set_hint (frame, CLUTTER_FRAME_HINT_DIRECT_SCANOUT_ATTEMPTED);
|
||||||
|
|
||||||
if (meta_stage_impl_scanout_view (stage_impl,
|
if (meta_stage_impl_scanout_view (stage_impl,
|
||||||
stage_view,
|
stage_view,
|
||||||
scanout,
|
scanout,
|
||||||
|
|
Loading…
Reference in a new issue