[mutter/gbsneto/effects-paint-nodes: 99/105] clutter/offscreen-effect: Simplify paint
- From: Robert Mader <rmader src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/effects-paint-nodes: 99/105] clutter/offscreen-effect: Simplify paint
- Date: Fri, 14 Aug 2020 16:04:19 +0000 (UTC)
commit 5d11104a0a55d566ba32ac26ed75fda2b16bf60a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Jun 29 15:12:08 2020 -0300
clutter/offscreen-effect: Simplify paint
Simply chain up to get the pre and post paint methods,
instead of reimplementing ClutterEffect.paint()
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1340
clutter/clutter/clutter-offscreen-effect.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/clutter/clutter/clutter-offscreen-effect.c b/clutter/clutter/clutter-offscreen-effect.c
index f097f222a5..f12dfa082d 100644
--- a/clutter/clutter/clutter-offscreen-effect.c
+++ b/clutter/clutter/clutter-offscreen-effect.c
@@ -509,15 +509,10 @@ clutter_offscreen_effect_paint (ClutterEffect *effect,
*/
if (priv->offscreen == NULL || (flags & CLUTTER_EFFECT_PAINT_ACTOR_DIRTY))
{
- ClutterEffectClass *effect_class = CLUTTER_EFFECT_GET_CLASS (effect);
- gboolean pre_paint_succeeded;
+ ClutterEffectClass *parent_class =
+ CLUTTER_EFFECT_CLASS (clutter_offscreen_effect_parent_class);
- pre_paint_succeeded = effect_class->pre_paint (effect, paint_context);
-
- clutter_actor_continue_paint (priv->actor, paint_context);
-
- if (pre_paint_succeeded)
- effect_class->post_paint (effect, paint_context);
+ parent_class->paint (effect, paint_context, flags);
}
else
clutter_offscreen_effect_paint_texture (self, paint_context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]