util: Adapt to ClutterCapture removal
It is not used anywhere by Mutter itself so move it here Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3088>
This commit is contained in:
parent
b5e5b67e22
commit
f48729f6e0
@ -354,13 +354,13 @@ shell_util_create_pixbuf_from_data (const guchar *data,
|
|||||||
typedef const gchar *(*ShellGLGetString) (GLenum);
|
typedef const gchar *(*ShellGLGetString) (GLenum);
|
||||||
|
|
||||||
cairo_surface_t *
|
cairo_surface_t *
|
||||||
shell_util_composite_capture_images (ClutterCapture *captures,
|
shell_util_composite_capture_images (StCapture *captures,
|
||||||
int n_captures,
|
int n_captures,
|
||||||
int x,
|
int x,
|
||||||
int y,
|
int y,
|
||||||
int target_width,
|
int target_width,
|
||||||
int target_height,
|
int target_height,
|
||||||
float target_scale)
|
float target_scale)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
cairo_format_t format;
|
cairo_format_t format;
|
||||||
@ -378,7 +378,7 @@ shell_util_composite_capture_images (ClutterCapture *captures,
|
|||||||
|
|
||||||
for (i = 0; i < n_captures; i++)
|
for (i = 0; i < n_captures; i++)
|
||||||
{
|
{
|
||||||
ClutterCapture *capture = &captures[i];
|
StCapture *capture = &captures[i];
|
||||||
|
|
||||||
cairo_save (cr);
|
cairo_save (cr);
|
||||||
|
|
||||||
|
@ -11,6 +11,12 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
typedef struct _StCapture
|
||||||
|
{
|
||||||
|
cairo_surface_t *image;
|
||||||
|
MtkRectangle rect;
|
||||||
|
} StCapture;
|
||||||
|
|
||||||
void shell_util_set_hidden_from_pick (ClutterActor *actor,
|
void shell_util_set_hidden_from_pick (ClutterActor *actor,
|
||||||
gboolean hidden);
|
gboolean hidden);
|
||||||
|
|
||||||
@ -46,13 +52,13 @@ GdkPixbuf *shell_util_create_pixbuf_from_data (const guchar *data,
|
|||||||
int height,
|
int height,
|
||||||
int rowstride);
|
int rowstride);
|
||||||
|
|
||||||
cairo_surface_t * shell_util_composite_capture_images (ClutterCapture *captures,
|
cairo_surface_t * shell_util_composite_capture_images (StCapture *captures,
|
||||||
int n_captures,
|
int n_captures,
|
||||||
int x,
|
int x,
|
||||||
int y,
|
int y,
|
||||||
int target_width,
|
int target_width,
|
||||||
int target_height,
|
int target_height,
|
||||||
float target_scale);
|
float target_scale);
|
||||||
|
|
||||||
void shell_util_check_cloexec_fds (void);
|
void shell_util_check_cloexec_fds (void);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user