[gtk/wip/baedert/for-master: 31/31] gl renderer: Use rect_contains_rect() copy
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 31/31] gl renderer: Use rect_contains_rect() copy
- Date: Tue, 12 Jan 2021 20:39:47 +0000 (UTC)
commit c3dc6b3bad9e6c0fd11f7849950e6ed0a91944c2
Author: Timm Bäder <mail baedert org>
Date: Mon Jan 11 21:49:30 2021 +0100
gl renderer: Use rect_contains_rect() copy
And this way the contains_rect() inside
rounded_inner_rect_contains_rect() goes from 3.3% to 0.79% in the
fishbowl when rendering the levelbars.
gsk/gl/gskglrenderer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 70dfce9792..c1ef336eed 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -1554,7 +1554,7 @@ rounded_inner_rect_contains_rect (const GskRoundedRect *rounded,
MAX (rounded->corner[GSK_CORNER_BOTTOM_LEFT].height,
rounded->corner[GSK_CORNER_BOTTOM_RIGHT].height);
- return graphene_rect_contains_rect (&inner, rect);
+ return _graphene_rect_contains_rect (&inner, rect);
}
/* Current clip is NOT rounded but new one is definitely! */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]