[gtk/wip/otte/for-master: 1/3] ngl: Remove duplicate check
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/for-master: 1/3] ngl: Remove duplicate check
- Date: Mon, 15 Mar 2021 02:18:07 +0000 (UTC)
commit 1fd534ef1ee0f5e62dbdcf1f82ed7dc287d77d13
Author: Benjamin Otte <otte redhat com>
Date: Tue Mar 9 21:05:49 2021 +0100
ngl: Remove duplicate check
We check the extents, so there's no need to check overlap before.
gsk/ngl/gsknglrenderer.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/gsk/ngl/gsknglrenderer.c b/gsk/ngl/gsknglrenderer.c
index 66edc98d5d..4c6a077ab3 100644
--- a/gsk/ngl/gsknglrenderer.c
+++ b/gsk/ngl/gsknglrenderer.c
@@ -173,10 +173,7 @@ get_render_region (GdkSurface *surface,
*/
damage = gdk_draw_context_get_frame_region (GDK_DRAW_CONTEXT (context));
- if (cairo_region_contains_rectangle (damage, &whole_surface) == CAIRO_REGION_OVERLAP_IN)
- return NULL;
-
- /* If the extents match the full-scene, do the same as above */
+ /* If the extents match the full-scene, return NULL */
cairo_region_get_extents (damage, &extents);
if (gdk_rectangle_equal (&extents, &whole_surface))
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]