screen-cast-*-stream-src: Switch to cogl_framebuffer_flush()

PipeWire recently introduced busy buffers, which actually fixes the last remaining
issue that blocked us from downgrading these cogl_framebuffer_finish() calls into
cogl_framebuffer_flush() ones.

Switch to cogl_framebuffer_flush() in all three stream sources.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1701>
This commit is contained in:
Georges Basile Stavracas Neto 2021-01-27 08:50:46 -03:00 committed by Marge Bot
parent 02610a1d45
commit aa2cb8a4f7
3 changed files with 3 additions and 3 deletions

View File

@ -485,7 +485,7 @@ meta_screen_cast_area_stream_src_record_to_framebuffer (MetaScreenCastStreamSrc
area, scale,
paint_flags);
cogl_framebuffer_finish (framebuffer);
cogl_framebuffer_flush (framebuffer);
return TRUE;
}

View File

@ -608,7 +608,7 @@ meta_screen_cast_monitor_stream_src_record_to_framebuffer (MetaScreenCastStreamS
}
}
cogl_framebuffer_finish (framebuffer);
cogl_framebuffer_flush (framebuffer);
return TRUE;
}

View File

@ -501,7 +501,7 @@ meta_screen_cast_window_stream_src_record_to_framebuffer (MetaScreenCastStreamSr
break;
}
cogl_framebuffer_finish (framebuffer);
cogl_framebuffer_flush (framebuffer);
return TRUE;
}