mirror of
https://github.com/brl/mutter.git
synced 2025-02-02 06:42:28 +00:00
shadow-factory: Optimize shadows entirely if clip region is empty
If the clip region is empty, we don't need to check the 9 slices separately, nothing will be painted anyway. https://gitlab.gnome.org/GNOME/mutter/merge_requests/698
This commit is contained in:
parent
ddbdb5fa77
commit
2812338b7a
@ -218,6 +218,9 @@ meta_shadow_paint (MetaShadow *shadow,
|
|||||||
int n_x, n_y;
|
int n_x, n_y;
|
||||||
gboolean source_updated = FALSE;
|
gboolean source_updated = FALSE;
|
||||||
|
|
||||||
|
if (clip && cairo_region_is_empty (clip))
|
||||||
|
return;
|
||||||
|
|
||||||
if (shadow->scale_width)
|
if (shadow->scale_width)
|
||||||
{
|
{
|
||||||
n_x = 3;
|
n_x = 3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user