shell: Adapt to ClutterEffect vfunc changes
Add the new ClutterPaintNode argument to the vfuncs. No other change is needed. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1350>
This commit is contained in:
parent
534f74b065
commit
80a5b55a7a
@ -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 *
|
||||||
|
@ -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 *
|
||||||
|
Loading…
Reference in New Issue
Block a user