cogl: Replace cairo_rectangle_int_t with MtkRectangle

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3128>
This commit is contained in:
Bilal Elmoussaoui 2023-07-19 15:47:16 +02:00
parent c035e0e238
commit 7ee5b0c3e6
3 changed files with 7 additions and 3 deletions

View File

@ -47,6 +47,7 @@
#include "cogl/cogl1-context.h"
#include "cogl/cogl-offscreen.h"
#include "cogl/cogl-matrix-stack.h"
#include "mtk/mtk.h"
static void *
_cogl_clip_stack_push_entry (CoglClipStack *clip_stack,
@ -276,7 +277,7 @@ cogl_clip_stack_push_region (CoglClipStack *stack,
{
CoglClipStack *entry;
CoglClipStackRegion *entry_region;
cairo_rectangle_int_t bounds;
MtkRectangle bounds;
entry_region = _cogl_clip_stack_push_entry (stack,
sizeof (CoglClipStackRegion),

View File

@ -32,6 +32,7 @@
* Robert Bragg <robert@linux.intel.com>
*/
#include "cogl-config.h"
#include "cogl/cogl-context-private.h"
@ -41,6 +42,7 @@
#include "cogl/driver/gl/cogl-util-gl-private.h"
#include "cogl/driver/gl/cogl-pipeline-opengl-private.h"
#include "cogl/driver/gl/cogl-clip-stack-gl-private.h"
#include "mtk/mtk.h"
static void
add_stencil_clip_rectangle (CoglFramebuffer *framebuffer,
@ -182,7 +184,7 @@ add_stencil_clip_region (CoglFramebuffer *framebuffer,
for (i = 0; i < num_rectangles; i++)
{
cairo_rectangle_int_t rect;
MtkRectangle rect;
float x1, y1, z1, w1;
float x2, y2, z2, w2;
CoglVertexP2 *v = vertices + i * 6;

View File

@ -2,7 +2,7 @@ cogl_includesubdir = pkgname / 'cogl'
cogl_includedir = includedir / cogl_includesubdir
cogl_srcdir = meson.current_source_dir()
cogl_includepath = include_directories('.', 'cogl')
cogl_includepath = [mtk_includepath, include_directories('.', 'cogl')]
cdata = configuration_data()
cdata.set('HAVE_COGL_GL', have_gl)
@ -26,6 +26,7 @@ cogl_pkg_private_deps = [
cairo_dep,
gmodule_no_export_dep,
gdk_pixbuf_dep,
libmutter_mtk_dep,
#uprof_dep,
]