[metacity] frames: remove clip_to_screen optimization
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] frames: remove clip_to_screen optimization
- Date: Fri, 24 Jun 2016 11:13:49 +0000 (UTC)
commit ef8bfec94f0e21d9925f9087fdbbf6f892d65b69
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Jun 24 12:57:04 2016 +0300
frames: remove clip_to_screen optimization
https://bugzilla.gnome.org/show_bug.cgi?id=538438
src/ui/frames.c | 36 ------------------------------------
1 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 6bf3fa2..c4ffbdf 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2116,41 +2116,6 @@ populate_cache (MetaFrames *frames,
}
static void
-clip_to_screen (cairo_region_t *region,
- Display *xdisplay,
- 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 (xdisplay, 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,
Display *xdisplay,
MetaUIFrame *frame)
@@ -2271,7 +2236,6 @@ meta_frames_draw (GtkWidget *widget,
cached_pixels_draw (pixels, cr, region);
- clip_to_screen (region, frames->xdisplay, frame);
subtract_client_area (region, frames->xdisplay, frame);
n_areas = cairo_region_num_rectangles (region);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]