[mutter] screen-cast/area-src: Drop phase parameter from add_view_painted_watches
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] screen-cast/area-src: Drop phase parameter from add_view_painted_watches
- Date: Mon, 5 Jul 2021 16:13:04 +0000 (UTC)
commit 7bcbf6d5c72c7cbb44ef0c5a737a3015e96375f9
Author: Michel Dänzer <mdaenzer redhat com>
Date: Fri Jun 25 12:53:13 2021 +0200
screen-cast/area-src: Drop phase parameter from add_view_painted_watches
It was always META_STAGE_WATCH_AFTER_ACTOR_PAINT.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1902>
src/backends/meta-screen-cast-area-stream-src.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/src/backends/meta-screen-cast-area-stream-src.c b/src/backends/meta-screen-cast-area-stream-src.c
index 91251cc63b..96953fe7f9 100644
--- a/src/backends/meta-screen-cast-area-stream-src.c
+++ b/src/backends/meta-screen-cast-area-stream-src.c
@@ -267,8 +267,7 @@ stage_painted (MetaStage *stage,
}
static void
-add_view_painted_watches (MetaScreenCastAreaStreamSrc *area_src,
- MetaStageWatchPhase watch_phase)
+add_view_painted_watches (MetaScreenCastAreaStreamSrc *area_src)
{
MetaScreenCastStreamSrc *src = META_SCREEN_CAST_STREAM_SRC (area_src);
MetaScreenCastStream *stream = meta_screen_cast_stream_src_get_stream (src);
@@ -296,7 +295,7 @@ add_view_painted_watches (MetaScreenCastAreaStreamSrc *area_src,
watch = meta_stage_watch_view (meta_stage,
CLUTTER_STAGE_VIEW (view),
- watch_phase,
+ META_STAGE_WATCH_AFTER_ACTOR_PAINT,
stage_painted,
area_src);
@@ -316,8 +315,7 @@ on_monitors_changed (MetaMonitorManager *monitor_manager,
meta_stage_remove_watch (stage, l->data);
g_clear_pointer (&area_src->watches, g_list_free);
- add_view_painted_watches (area_src,
- META_STAGE_WATCH_AFTER_ACTOR_PAINT);
+ add_view_painted_watches (area_src);
}
static void
@@ -349,14 +347,12 @@ meta_screen_cast_area_stream_src_enable (MetaScreenCastStreamSrc *src)
meta_cursor_tracker_track_position (cursor_tracker);
G_GNUC_FALLTHROUGH;
case META_SCREEN_CAST_CURSOR_MODE_HIDDEN:
- add_view_painted_watches (area_src,
- META_STAGE_WATCH_AFTER_ACTOR_PAINT);
+ add_view_painted_watches (area_src);
break;
case META_SCREEN_CAST_CURSOR_MODE_EMBEDDED:
inhibit_hw_cursor (area_src);
meta_cursor_tracker_track_position (cursor_tracker);
- add_view_painted_watches (area_src,
- META_STAGE_WATCH_AFTER_ACTOR_PAINT);
+ add_view_painted_watches (area_src);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]