[gtk/gl-linear: 18/21] gl: Reshuffle some code
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gl-linear: 18/21] gl: Reshuffle some code
- Date: Fri, 4 Sep 2020 17:21:31 +0000 (UTC)
commit 9843515736234147dc07bb8bc0c792a86d106488
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 4 12:35:59 2020 -0400
gl: Reshuffle some code
Just rearrange the cases in this switch, no effective change.
gsk/gl/gskglrenderer.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 5078aeef65..47ec75e21f 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -1035,11 +1035,10 @@ render_transform_node (GskGLRenderer *self,
}
break;
- case GSK_TRANSFORM_CATEGORY_UNKNOWN:
- case GSK_TRANSFORM_CATEGORY_ANY:
- case GSK_TRANSFORM_CATEGORY_3D:
case GSK_TRANSFORM_CATEGORY_2D:
- default:
+ case GSK_TRANSFORM_CATEGORY_3D:
+ case GSK_TRANSFORM_CATEGORY_ANY:
+ case GSK_TRANSFORM_CATEGORY_UNKNOWN:
{
TextureRegion region;
gboolean is_offscreen;
@@ -1050,7 +1049,9 @@ render_transform_node (GskGLRenderer *self,
gsk_gl_renderer_add_render_ops (self, child, builder);
ops_pop_modelview (builder);
}
- else if (add_offscreen_ops (self, builder,
+ else
+ {
+ if (add_offscreen_ops (self, builder,
&child->bounds,
child,
®ion, &is_offscreen,
@@ -1073,6 +1074,11 @@ render_transform_node (GskGLRenderer *self,
ops_pop_modelview (builder);
}
}
+ break;
+
+ default:
+ g_assert_not_reached ();
+ break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]