[mutter] clutter/stage/cogl: Name variable to make coordinate space obvious



commit 37d7df612b552570ba9581443d0b4523156154f8
Author: Jonas Ådahl <jadahl gmail com>
Date:   Mon Jan 20 18:07:12 2020 +0100

    clutter/stage/cogl: Name variable to make coordinate space obvious
    
    The ambiguous "clip" was renamed to "fb_clip_region", as it was called
    at the call site. This should make it more clear that the clip is in
    buffer coordinate space.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/1042

 clutter/clutter/cogl/clutter-stage-cogl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c
index accb3d1cb..40258995d 100644
--- a/clutter/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/clutter/cogl/clutter-stage-cogl.c
@@ -541,7 +541,7 @@ scale_and_clamp_rect (const graphene_rect_t *rect,
 static void
 paint_stage (ClutterStageCogl *stage_cogl,
              ClutterStageView *view,
-             cairo_region_t   *clip)
+             cairo_region_t   *fb_clip_region)
 {
   ClutterStage *stage = stage_cogl->wrapper;
   cairo_rectangle_int_t clip_rect;
@@ -553,7 +553,7 @@ paint_stage (ClutterStageCogl *stage_cogl,
   clutter_stage_view_get_layout (view, &view_rect);
   fb_scale = clutter_stage_view_get_scale (view);
 
-  cairo_region_get_extents (clip, &clip_rect);
+  cairo_region_get_extents (fb_clip_region, &clip_rect);
 
   _clutter_util_rect_from_rectangle (&clip_rect, &rect);
   scale_and_clamp_rect (&rect, 1.0f / fb_scale, &paint_rect);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]