[mutter/gbsneto/graphene-frustrum: 12/19] clutter: Remove CLUTTER_CULL_RESULT_PARTIAL
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/graphene-frustrum: 12/19] clutter: Remove CLUTTER_CULL_RESULT_PARTIAL
- Date: Tue, 13 Oct 2020 11:33:26 +0000 (UTC)
commit 31596faad25732548132c254545c7b39f0a8c4ac
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Oct 9 19:24:34 2020 -0300
clutter: Remove CLUTTER_CULL_RESULT_PARTIAL
Culling paint volumes don't give this level of detail anymore, and in
fact knowing whether it was partially or fully in was only being used
in a debug path. For the purposes of culling, it doesn't matter if a
given actor is partially or completely inside the frustum; either way,
it must be painted.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1489
clutter/clutter/clutter-actor.c | 5 +----
clutter/clutter/clutter-private.h | 1 -
2 files changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c
index c314c49a84..862fbe8952 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -3372,7 +3372,6 @@ _clutter_actor_paint_cull_result (ClutterActor *self,
case CLUTTER_CULL_RESULT_OUT:
clutter_color_init (&color, 0, 0, 255, 255);
break;
- case CLUTTER_CULL_RESULT_PARTIAL:
default:
clutter_color_init (&color, 0, 255, 255, 255);
break;
@@ -3503,10 +3502,8 @@ cull_actor (ClutterActor *self,
switch (overlap)
{
case CAIRO_REGION_OVERLAP_IN:
- *result_out = CLUTTER_CULL_RESULT_IN;
- break;
case CAIRO_REGION_OVERLAP_PART:
- *result_out = CLUTTER_CULL_RESULT_PARTIAL;
+ *result_out = CLUTTER_CULL_RESULT_IN;
break;
case CAIRO_REGION_OVERLAP_OUT:
*result_out = CLUTTER_CULL_RESULT_OUT;
diff --git a/clutter/clutter/clutter-private.h b/clutter/clutter/clutter-private.h
index fa481b521c..9b20e436e5 100644
--- a/clutter/clutter/clutter-private.h
+++ b/clutter/clutter/clutter-private.h
@@ -250,7 +250,6 @@ typedef enum _ClutterCullResult
CLUTTER_CULL_RESULT_UNKNOWN,
CLUTTER_CULL_RESULT_IN,
CLUTTER_CULL_RESULT_OUT,
- CLUTTER_CULL_RESULT_PARTIAL
} ClutterCullResult;
gboolean _clutter_has_progress_function (GType gtype);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]