[gtk+/rendering-cleanup: 65/65] gdk: Clean up Cairo code



commit 7fe1ee5d3bc26406943ada4b1c5878c471640bf6
Author: Benjamin Otte <otte redhat com>
Date:   Thu Dec 2 12:06:49 2010 +0100

    gdk: Clean up Cairo code
    
    Remove a bunch of code that is not required.

 gdk/gdkwindow.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 1be8be0..7b89ab7 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -3693,15 +3693,7 @@ gdk_cairo_create (GdkWindow *window)
 
   if (!window->paint_stack)
     {
-      cairo_reset_clip (cr);
-
-      cairo_save (cr);
-      cairo_identity_matrix (cr);
-
-      cairo_new_path (cr);
       gdk_cairo_region (cr, window->clip_region_with_children);
-
-      cairo_restore (cr);
       cairo_clip (cr);
     }
   else
@@ -3710,16 +3702,9 @@ gdk_cairo_create (GdkWindow *window)
 
       /* Only needs to clip to region if piggybacking
 	 on an implicit paint */
-      cairo_reset_clip (cr);
       if (paint->uses_implicit)
 	{
-	  cairo_save (cr);
-	  cairo_identity_matrix (cr);
-
-	  cairo_new_path (cr);
 	  gdk_cairo_region (cr, paint->region);
-	  cairo_restore (cr);
-
 	  cairo_clip (cr);
 	}
     }



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