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
This commit is contained in:
Georges Basile Stavracas Neto 2020-07-06 10:38:04 -03:00
parent e8fc6a8919
commit 16b14059b6
2 changed files with 4 additions and 2 deletions

View File

@ -24,6 +24,7 @@ G_DEFINE_TYPE_WITH_PRIVATE (ShellGLSLEffect, shell_glsl_effect, CLUTTER_TYPE_OFF
static gboolean static gboolean
shell_glsl_effect_pre_paint (ClutterEffect *effect, shell_glsl_effect_pre_paint (ClutterEffect *effect,
ClutterPaintNode *node,
ClutterPaintContext *paint_context) ClutterPaintContext *paint_context)
{ {
ClutterEffectClass *parent_class; ClutterEffectClass *parent_class;
@ -41,7 +42,7 @@ shell_glsl_effect_pre_paint (ClutterEffect *effect,
} }
parent_class = CLUTTER_EFFECT_CLASS (shell_glsl_effect_parent_class); 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 * static CoglPipeline *

View File

@ -74,6 +74,7 @@ G_DEFINE_TYPE (ShellInvertLightnessEffect,
static gboolean static gboolean
shell_invert_lightness_effect_pre_paint (ClutterEffect *effect, shell_invert_lightness_effect_pre_paint (ClutterEffect *effect,
ClutterPaintNode *node,
ClutterPaintContext *paint_context) ClutterPaintContext *paint_context)
{ {
ShellInvertLightnessEffect *self = SHELL_INVERT_LIGHTNESS_EFFECT (effect); ShellInvertLightnessEffect *self = SHELL_INVERT_LIGHTNESS_EFFECT (effect);
@ -94,7 +95,7 @@ shell_invert_lightness_effect_pre_paint (ClutterEffect *effect,
parent_class = parent_class =
CLUTTER_EFFECT_CLASS (shell_invert_lightness_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 * static CoglPipeline *