[mutter/bilelmoussaoui/gdk-x11-only: 432/442] compositor: Drop debug helpers
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/bilelmoussaoui/gdk-x11-only: 432/442] compositor: Drop debug helpers
- Date: Thu, 22 Sep 2022 16:04:11 +0000 (UTC)
commit 7cb474fa9f9ea2176ce9a38030260bd4fabb6971
Author: Bilal Elmoussaoui <belmouss redhat com>
Date: Fri May 27 15:16:23 2022 +0200
compositor: Drop debug helpers
They can no longer work as libmutter will drop it gdk/gtk dependencies
in the upcoming commits
src/compositor/meta-window-actor.c | 41 --------------------------------------
1 file changed, 41 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index df13817fcf..67c1902c88 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -993,47 +993,6 @@ meta_window_actor_size_change (MetaWindowActor *self,
priv->size_change_in_progress--;
}
-#if 0
-/* Print out a region; useful for debugging */
-static void
-print_region (cairo_region_t *region)
-{
- int n_rects;
- int i;
-
- n_rects = cairo_region_num_rectangles (region);
- g_print ("[");
- for (i = 0; i < n_rects; i++)
- {
- cairo_rectangle_int_t rect;
- cairo_region_get_rectangle (region, i, &rect);
- g_print ("+%d+%dx%dx%d ",
- rect.x, rect.y, rect.width, rect.height);
- }
- g_print ("]\n");
-}
-#endif
-
-#if 0
-/* Dump a region to a PNG file; useful for debugging */
-static void
-see_region (cairo_region_t *region,
- int width,
- int height,
- char *filename)
-{
- cairo_surface_t *surface = cairo_image_surface_create (CAIRO_FORMAT_A8, width, height);
- cairo_t *cr = cairo_create (surface);
-
- gdk_cairo_region (cr, region);
- cairo_fill (cr);
-
- cairo_surface_write_to_png (surface, filename);
- cairo_destroy (cr);
- cairo_surface_destroy (surface);
-}
-#endif
-
static void
meta_window_actor_cull_out (MetaCullable *cullable,
cairo_region_t *unobscured_region,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]