screen-cast-window: Add API to check if content has damage
https://gitlab.gnome.org/GNOME/mutter/merge_requests/413
This commit is contained in:
@ -77,3 +77,12 @@ meta_screen_cast_window_capture_into (MetaScreenCastWindow *screen_cast_window,
|
||||
bounds,
|
||||
data);
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_screen_cast_window_has_damage (MetaScreenCastWindow *screen_cast_window)
|
||||
{
|
||||
MetaScreenCastWindowInterface *iface =
|
||||
META_SCREEN_CAST_WINDOW_GET_IFACE (screen_cast_window);
|
||||
|
||||
return iface->has_damage (screen_cast_window);
|
||||
}
|
||||
|
@ -55,6 +55,8 @@ struct _MetaScreenCastWindowInterface
|
||||
void (*capture_into) (MetaScreenCastWindow *screen_cast_window,
|
||||
MetaRectangle *bounds,
|
||||
uint8_t *data);
|
||||
|
||||
gboolean (*has_damage) (MetaScreenCastWindow *screen_cast_window);
|
||||
};
|
||||
|
||||
void meta_screen_cast_window_get_frame_bounds (MetaScreenCastWindow *screen_cast_window,
|
||||
@ -76,6 +78,8 @@ void meta_screen_cast_window_capture_into (MetaScreenCastWindow *screen_cast_win
|
||||
MetaRectangle *bounds,
|
||||
uint8_t *data);
|
||||
|
||||
gboolean meta_screen_cast_window_has_damage (MetaScreenCastWindow *screen_cast_window);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* META_SCREEN_CAST_WINDOW_H */
|
||||
|
Reference in New Issue
Block a user