[gtk/wip/chergert/glproto] set cairo/repeating gradients as fallback



commit 46d30b5a7713c5f12d3a67a890c5b8b412248566
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jan 12 10:45:52 2021 -0800

    set cairo/repeating gradients as fallback

 gsk/next/gskglrenderjob.c | 37 ++++++-------------------------------
 1 file changed, 6 insertions(+), 31 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index 72b29ef89b..2315fb47c7 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -1045,18 +1045,6 @@ gsk_gl_render_job_visit_radial_gradient_node (GskGLRenderJob *job,
   gsk_gl_program_end_draw (job->driver->radial_gradient);
 }
 
-static void
-gsk_gl_render_job_visit_repeating_linear_gradient_node (GskGLRenderJob *job,
-                                                        GskRenderNode  *node)
-{
-}
-
-static void
-gsk_gl_render_job_visit_repeating_radial_gradient_node (GskGLRenderJob *job,
-                                                        GskRenderNode  *node)
-{
-}
-
 static void
 gsk_gl_render_job_visit_clipped_child (GskGLRenderJob        *job,
                                        GskRenderNode         *child,
@@ -1816,13 +1804,6 @@ gsk_gl_render_job_visit_blend_node (GskGLRenderJob *job,
   gsk_gl_render_job_visit_as_fallback (job, node);
 }
 
-static void
-gsk_gl_render_job_visit_cairo_node (GskGLRenderJob *job,
-                                    GskRenderNode  *node)
-{
-  gsk_gl_render_job_visit_as_fallback (job, node);
-}
-
 static void
 gsk_gl_render_job_visit_color_matrix_node (GskGLRenderJob *job,
                                            GskRenderNode  *node)
@@ -1968,10 +1949,6 @@ gsk_gl_render_job_visit_node (GskGLRenderJob *job,
         gsk_gl_render_job_visit_border_node (job, node);
     break;
 
-    case GSK_CAIRO_NODE:
-      gsk_gl_render_job_visit_cairo_node (job, node);
-    break;
-
     case GSK_CLIP_NODE:
       gsk_gl_render_job_visit_clip_node (job, node);
     break;
@@ -2067,14 +2044,6 @@ gsk_gl_render_job_visit_node (GskGLRenderJob *job,
       gsk_gl_render_job_visit_repeat_node (job, node);
     break;
 
-    case GSK_REPEATING_LINEAR_GRADIENT_NODE:
-      gsk_gl_render_job_visit_repeating_linear_gradient_node (job, node);
-    break;
-
-    case GSK_REPEATING_RADIAL_GRADIENT_NODE:
-      gsk_gl_render_job_visit_repeating_radial_gradient_node (job, node);
-    break;
-
     case GSK_ROUNDED_CLIP_NODE:
       gsk_gl_render_job_visit_rounded_clip_node (job, node);
     break;
@@ -2098,6 +2067,12 @@ gsk_gl_render_job_visit_node (GskGLRenderJob *job,
       gsk_gl_render_job_visit_transform_node (job, node);
     break;
 
+    case GSK_REPEATING_LINEAR_GRADIENT_NODE:
+    case GSK_REPEATING_RADIAL_GRADIENT_NODE:
+    case GSK_CAIRO_NODE:
+      gsk_gl_render_job_visit_as_fallback (job, node);
+    break;
+
     case GSK_NOT_A_RENDER_NODE:
     default:
       g_assert_not_reached ();


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