[gtk+/wip/otte/vulkan: 8/12] glrenderer: Always redraw the whole screen



commit 763e41663f45cb992a420f42dcf997cb05ff5487
Author: Benjamin Otte <otte redhat com>
Date:   Sun Nov 27 16:37:31 2016 +0100

    glrenderer: Always redraw the whole screen

 gsk/gskglrenderer.c |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/gsk/gskglrenderer.c b/gsk/gskglrenderer.c
index 5d0bb12..3ec9327 100644
--- a/gsk/gskglrenderer.c
+++ b/gsk/gskglrenderer.c
@@ -346,6 +346,28 @@ gsk_gl_renderer_begin_draw_frame (GskRenderer          *renderer,
   return result;
 }
 
+static GdkDrawingContext *
+gsk_gl_renderer_begin_draw_frame (GskRenderer          *renderer,
+                                  const cairo_region_t *region)
+{
+  cairo_region_t *whole_window;
+  GdkDrawingContext *result;
+  GdkWindow *window;
+
+  window = gsk_renderer_get_window (renderer);
+  
+  whole_window = cairo_region_create_rectangle (&(GdkRectangle) {
+                                                         0, 0,
+                                                         gdk_window_get_width (window),
+                                                         gdk_window_get_height (window) });
+
+  result = GSK_RENDERER_CLASS (gsk_gl_renderer_parent_class)->begin_draw_frame (renderer, whole_window);
+
+  cairo_region_destroy (whole_window);
+
+  return result;
+}
+
 static void
 gsk_gl_renderer_resize_viewport (GskGLRenderer         *self,
                                  const graphene_rect_t *viewport,


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