[metacity/gnome-3-18] frames: remove clip_to_screen optimization
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity/gnome-3-18] frames: remove clip_to_screen optimization
- Date: Fri, 24 Jun 2016 11:23:55 +0000 (UTC)
commit acf8b4b2f6cacd8ced03d960f07325ee36b2ea50
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Jun 24 14:22:23 2016 +0300
frames: remove clip_to_screen optimization
https://bugzilla.gnome.org/show_bug.cgi?id=538438
src/ui/frames.c | 34 ----------------------------------
1 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 4089090..b65f32b 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2356,39 +2356,6 @@ populate_cache (MetaFrames *frames,
}
static void
-clip_to_screen (cairo_region_t *region, MetaUIFrame *frame)
-{
- cairo_rectangle_int_t frame_area;
- cairo_rectangle_int_t screen_area = { 0, 0, 0, 0 };
- cairo_region_t *tmp_region;
-
- /* Chop off stuff outside the screen; this optimization
- * is crucial to handle huge client windows,
- * like "xterm -geometry 1000x1000"
- */
- meta_core_get (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), frame->xwindow,
- META_CORE_GET_FRAME_X, &frame_area.x,
- META_CORE_GET_FRAME_Y, &frame_area.y,
- META_CORE_GET_FRAME_WIDTH, &frame_area.width,
- META_CORE_GET_FRAME_HEIGHT, &frame_area.height,
- META_CORE_GET_SCREEN_WIDTH, &screen_area.width,
- META_CORE_GET_SCREEN_HEIGHT, &screen_area.height,
- META_CORE_GET_END);
-
- cairo_region_translate (region, frame_area.x, frame_area.y);
-
- tmp_region = cairo_region_create_rectangle (&frame_area);
- cairo_region_intersect (region, tmp_region);
- cairo_region_destroy (tmp_region);
-
- tmp_region = cairo_region_create_rectangle (&screen_area);
- cairo_region_intersect (region, tmp_region);
- cairo_region_destroy (tmp_region);
-
- cairo_region_translate (region, - frame_area.x, - frame_area.y);
-}
-
-static void
subtract_client_area (cairo_region_t *region,
MetaUIFrame *frame)
{
@@ -2512,7 +2479,6 @@ meta_frames_draw (GtkWidget *widget,
cached_pixels_draw (pixels, cr, region);
- clip_to_screen (region, frame);
subtract_client_area (region, frame);
n_areas = cairo_region_num_rectangles (region);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]