summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2020-07-06 10:38:04 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2020-12-08 17:53:07 -0300
commit2761a85f54d85230d0e6fb214356323c9cccb494 (patch)
treec04234215ea1e5ba3e72b7b6b1fe29971f48ea73
parent2eab24098bcab034bb2fd0bde4c53de68290f307 (diff)
downloadgnome-shell-gbsneto/offscreen-paint-node.tar.gz
shell: Adapt to ClutterEffect vfunc changesgbsneto/offscreen-paint-node
Add the new ClutterPaintNode argument to the vfuncs. No other change is needed.
-rw-r--r--src/shell-glsl-effect.c3
-rw-r--r--src/shell-invert-lightness-effect.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/shell-glsl-effect.c b/src/shell-glsl-effect.c
index 599aa52ed..b7d39bd7b 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 f1b27a651..c9521ea49 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 *