summaryrefslogtreecommitdiff
path: root/src/compositor/meta-window-actor.c
diff options
context:
space:
mode:
authorSebastian Wick <sebastian.wick@redhat.com>2022-03-15 11:34:26 +0100
committerMarge Bot <marge-bot@gnome.org>2022-10-10 18:16:51 +0000
commit0034b54877138d384fa791ff66f009e48b6247f6 (patch)
tree081eec81a238bb6ef4fa6c53963073b67dea8e13 /src/compositor/meta-window-actor.c
parent8832a5a1c2f40b503771d20095f243ac123235b7 (diff)
downloadmutter-0034b54877138d384fa791ff66f009e48b6247f6.tar.gz
window-actor: Move culling logic into child classes
Prepare for adding Wayland specific culling logic to the MetaWindowActorWayland class by moving all the logic to the non-abstract classes, since there will be no reason to keep the logic in MetaWindowActor around. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2338>
Diffstat (limited to 'src/compositor/meta-window-actor.c')
-rw-r--r--src/compositor/meta-window-actor.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index b39bfc632..85309eeb6 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -27,7 +27,6 @@
#include "backends/meta-screen-cast-window.h"
#include "compositor/compositor-private.h"
-#include "compositor/meta-cullable.h"
#include "compositor/meta-shaped-texture-private.h"
#include "compositor/meta-surface-actor-x11.h"
#include "compositor/meta-surface-actor.h"
@@ -114,13 +113,10 @@ static MetaSurfaceActor * meta_window_actor_real_get_scanout_candidate (MetaWind
static void meta_window_actor_real_assign_surface_actor (MetaWindowActor *self,
MetaSurfaceActor *surface_actor);
-static void cullable_iface_init (MetaCullableInterface *iface);
-
static void screen_cast_window_iface_init (MetaScreenCastWindowInterface *iface);
G_DEFINE_ABSTRACT_TYPE_WITH_CODE (MetaWindowActor, meta_window_actor, CLUTTER_TYPE_ACTOR,
G_ADD_PRIVATE (MetaWindowActor)
- G_IMPLEMENT_INTERFACE (META_TYPE_CULLABLE, cullable_iface_init)
G_IMPLEMENT_INTERFACE (META_TYPE_SCREEN_CAST_WINDOW, screen_cast_window_iface_init));
static void
@@ -1035,28 +1031,6 @@ see_region (cairo_region_t *region,
}
#endif
-
-static void
-meta_window_actor_cull_out (MetaCullable *cullable,
- cairo_region_t *unobscured_region,
- cairo_region_t *clip_region)
-{
- meta_cullable_cull_out_children (cullable, unobscured_region, clip_region);
-}
-
-static void
-meta_window_actor_reset_culling (MetaCullable *cullable)
-{
- meta_cullable_reset_culling_children (cullable);
-}
-
-static void
-cullable_iface_init (MetaCullableInterface *iface)
-{
- iface->cull_out = meta_window_actor_cull_out;
- iface->reset_culling = meta_window_actor_reset_culling;
-}
-
void
meta_window_actor_sync_visibility (MetaWindowActor *self)
{