mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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
This commit is contained in:
parent
80bd44cba0
commit
496aea51af
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user