[gtk] gl renderer: Avoid copying a rect
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] gl renderer: Avoid copying a rect
- Date: Fri, 11 Oct 2019 20:31:56 +0000 (UTC)
commit 1caa95b8148a27c73b7db42295ba85b1420eb56a
Author: Timm Bäder <mail baedert org>
Date: Fri Oct 11 21:49:13 2019 +0200
gl renderer: Avoid copying a rect
gsk/gl/gskglrenderer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 531e145d62..f46542c74b 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -1085,13 +1085,13 @@ render_clip_node (GskGLRenderer *self,
GskRenderNode *node,
RenderOpBuilder *builder)
{
+ const graphene_rect_t *clip = gsk_clip_node_peek_clip (node);
GskRenderNode *child = gsk_clip_node_get_child (node);
graphene_rect_t transformed_clip;
graphene_rect_t intersection;
GskRoundedRect child_clip;
- transformed_clip = *gsk_clip_node_peek_clip (node);
- ops_transform_bounds_modelview (builder, &transformed_clip, &transformed_clip);
+ ops_transform_bounds_modelview (builder, clip, &transformed_clip);
graphene_rect_intersection (&transformed_clip,
&builder->current_clip->bounds,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]