mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
st/scroll-view-fade: Cleanup unecessary vfunc override
It does exactly what ClutterOffscreenEffect does these days. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3347>
This commit is contained in:
parent
37fd461759
commit
4e449536f8
1 changed files with 0 additions and 13 deletions
|
|
@ -66,24 +66,12 @@ enum {
|
|||
|
||||
static GParamSpec *props[N_PROPS] = { NULL, };
|
||||
|
||||
static CoglTexture *
|
||||
st_scroll_view_fade_create_texture (ClutterOffscreenEffect *effect,
|
||||
gfloat min_width,
|
||||
gfloat min_height)
|
||||
{
|
||||
CoglContext *ctx =
|
||||
clutter_backend_get_cogl_context (clutter_get_default_backend ());
|
||||
|
||||
return cogl_texture_2d_new_with_size (ctx, min_width, min_height);
|
||||
}
|
||||
|
||||
static char *
|
||||
st_scroll_view_fade_get_static_shader_source (ClutterShaderEffect *effect)
|
||||
{
|
||||
return g_strdup (st_scroll_view_fade_glsl);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
st_scroll_view_fade_paint_target (ClutterOffscreenEffect *effect,
|
||||
ClutterPaintNode *node,
|
||||
|
|
@ -384,7 +372,6 @@ st_scroll_view_fade_class_init (StScrollViewFadeClass *klass)
|
|||
shader_class->get_static_shader_source = st_scroll_view_fade_get_static_shader_source;
|
||||
|
||||
offscreen_class = CLUTTER_OFFSCREEN_EFFECT_CLASS (klass);
|
||||
offscreen_class->create_texture = st_scroll_view_fade_create_texture;
|
||||
offscreen_class->paint_target = st_scroll_view_fade_paint_target;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue