[gnome-shell/gbsneto/offscreen-paint-node: 3/4] st/scroll-view-fade: Adapt to paint_target() API changes
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/offscreen-paint-node: 3/4] st/scroll-view-fade: Adapt to paint_target() API changes
- Date: Tue, 8 Dec 2020 20:53:22 +0000 (UTC)
commit 2eab24098bcab034bb2fd0bde4c53de68290f307
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Jul 5 17:46:50 2020 -0300
st/scroll-view-fade: Adapt to paint_target() API changes
It now receives a ClutterPaintNode to paint on. Fortunately,
StScrollViewFade doesn't do any drawing itself, so no changes
are needed.
src/st/st-scroll-view-fade.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/st/st-scroll-view-fade.c b/src/st/st-scroll-view-fade.c
index 30b5a4c79f..a0bb85bda8 100644
--- a/src/st/st-scroll-view-fade.c
+++ b/src/st/st-scroll-view-fade.c
@@ -86,6 +86,7 @@ st_scroll_view_fade_get_static_shader_source (ClutterShaderEffect *effect)
static void
st_scroll_view_fade_paint_target (ClutterOffscreenEffect *effect,
+ ClutterPaintNode *node,
ClutterPaintContext *paint_context)
{
StScrollViewFade *self = ST_SCROLL_VIEW_FADE (effect);
@@ -154,7 +155,7 @@ st_scroll_view_fade_paint_target (ClutterOffscreenEffect *effect,
clutter_shader_effect_set_uniform (shader, "fade_area_bottomright", CLUTTER_TYPE_SHADER_FLOAT, 2,
fade_area_bottomright);
parent = CLUTTER_OFFSCREEN_EFFECT_CLASS (st_scroll_view_fade_parent_class);
- parent->paint_target (effect, paint_context);
+ parent->paint_target (effect, node, paint_context);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]