clutter: Move cairo pixel format to cogl

As Cogl already defines a pixel format enum, it makes sense to move such
endian dependant pixel format there

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3086>
This commit is contained in:
Bilal Elmoussaoui
2023-06-22 13:46:50 +02:00
committed by Marge Bot
parent b65f333483
commit 98bd2aa2c2
13 changed files with 20 additions and 63 deletions

View File

@ -245,7 +245,7 @@ capture_view_into (ClutterStageView *view,
context = clutter_backend_get_cogl_context (backend);
bitmap = cogl_bitmap_new_for_data (context,
texture_width, texture_height,
CLUTTER_CAIRO_FORMAT_ARGB32,
COGL_PIXEL_FORMAT_CAIRO_ARGB32_COMPAT,
stride,
buffer);