[gnome-shell/gbsneto/offscreen-paint-node: 19/19] shell: Adapt to ClutterEffect vfunc changes




commit 6f70c0fac454b7efbc529c617e3c0205ee9c100a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Jul 6 10:38:04 2020 -0300

    shell: Adapt to ClutterEffect vfunc changes
    
    Add the new ClutterPaintNode argument to the vfuncs. No other
    change is needed.

 src/shell-glsl-effect.c             | 3 ++-
 src/shell-invert-lightness-effect.c | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/shell-glsl-effect.c b/src/shell-glsl-effect.c
index 599aa52eda..b7d39bd7b4 100644
--- a/src/shell-glsl-effect.c
+++ b/src/shell-glsl-effect.c
@@ -24,6 +24,7 @@ G_DEFINE_TYPE_WITH_PRIVATE (ShellGLSLEffect, shell_glsl_effect, CLUTTER_TYPE_OFF
 
 static gboolean
 shell_glsl_effect_pre_paint (ClutterEffect       *effect,
+                             ClutterPaintNode    *node,
                              ClutterPaintContext *paint_context)
 {
   ClutterEffectClass *parent_class;
@@ -41,7 +42,7 @@ shell_glsl_effect_pre_paint (ClutterEffect       *effect,
     }
 
   parent_class = CLUTTER_EFFECT_CLASS (shell_glsl_effect_parent_class);
-  return parent_class->pre_paint (effect, paint_context);
+  return parent_class->pre_paint (effect, node, paint_context);
 }
 
 static CoglPipeline *
diff --git a/src/shell-invert-lightness-effect.c b/src/shell-invert-lightness-effect.c
index f1b27a6513..c9521ea495 100644
--- a/src/shell-invert-lightness-effect.c
+++ b/src/shell-invert-lightness-effect.c
@@ -74,6 +74,7 @@ G_DEFINE_TYPE (ShellInvertLightnessEffect,
 
 static gboolean
 shell_invert_lightness_effect_pre_paint (ClutterEffect       *effect,
+                                         ClutterPaintNode    *node,
                                          ClutterPaintContext *paint_context)
 {
   ShellInvertLightnessEffect *self = SHELL_INVERT_LIGHTNESS_EFFECT (effect);
@@ -94,7 +95,7 @@ shell_invert_lightness_effect_pre_paint (ClutterEffect       *effect,
   parent_class =
     CLUTTER_EFFECT_CLASS (shell_invert_lightness_effect_parent_class);
 
-  return parent_class->pre_paint (effect, paint_context);
+  return parent_class->pre_paint (effect, node, paint_context);
 }
 
 static CoglPipeline *


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