[gnome-shell/gbsneto/offscreen-paint-node: 4/4] shell: Adapt to ClutterEffect vfunc changes
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/offscreen-paint-node: 4/4] shell: Adapt to ClutterEffect vfunc changes
- Date: Mon, 6 Jul 2020 13:54:24 +0000 (UTC)
commit 16b14059b6d4ba8b32e9527f0524486eb8e5d9cc
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.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1350
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 d466f319d9..c5aea920b6 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]