[gnome-shell] blur-effect: Remove modify_paint_volume vfunc override



commit 7c8ed95330ae3a15d772d1cad4a749d5dc3d5194
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Mon Feb 10 15:27:34 2020 +0100

    blur-effect: Remove modify_paint_volume vfunc override
    
    If we modify the paint volume to make it larger and include the blur
    radius, we should also use the gained size and draw something there.
    Since the framebuffers are only the size of the actor to blur, we're not
    doing that right now anyway, so remove the vfunc override.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/991

 src/shell-blur-effect.c | 27 ---------------------------
 1 file changed, 27 deletions(-)
---
diff --git a/src/shell-blur-effect.c b/src/shell-blur-effect.c
index 01dd797bd9..ffabff1145 100644
--- a/src/shell-blur-effect.c
+++ b/src/shell-blur-effect.c
@@ -827,32 +827,6 @@ fail:
   clutter_actor_continue_paint (self->actor, paint_context);
 }
 
-static gboolean
-shell_blur_effect_modify_paint_volume (ClutterEffect      *effect,
-                                       ClutterPaintVolume *volume)
-{
-  ShellBlurEffect *self = SHELL_BLUR_EFFECT (effect);
-  graphene_point3d_t origin;
-  float width;
-  float height;
-
-  clutter_paint_volume_get_origin (volume, &origin);
-  width = clutter_paint_volume_get_width (volume);
-  height = clutter_paint_volume_get_height (volume);
-
-  origin.y -= self->sigma;
-  origin.x -= self->sigma;
-
-  height += 2 * self->sigma;
-  width += 2 * self->sigma;
-
-  clutter_paint_volume_set_origin (volume, &origin);
-  clutter_paint_volume_set_width (volume, width);
-  clutter_paint_volume_set_height (volume, height);
-
-  return TRUE;
-}
-
 static void
 shell_blur_effect_finalize (GObject *object)
 {
@@ -941,7 +915,6 @@ shell_blur_effect_class_init (ShellBlurEffectClass *klass)
   meta_class->set_actor = shell_blur_effect_set_actor;
 
   effect_class->paint = shell_blur_effect_paint;
-  effect_class->modify_paint_volume = shell_blur_effect_modify_paint_volume;
 
   properties[PROP_SIGMA] =
     g_param_spec_int ("sigma",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]