diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-10-28 16:10:46 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-10-28 16:10:46 -0400 |
commit | 598d22d194a51304277fb2eb174576aaa8185b7d (patch) | |
tree | 963f460d93d5c1c13ce4b6d1055ff93b000d0389 /gtk/gtkcssshadowvalueprivate.h | |
parent | 99d3d31314666b836be45d8adea1f17cee8d3cdd (diff) | |
download | gtk+-598d22d194a51304277fb2eb174576aaa8185b7d.tar.gz |
Avoid creating trivial shadow nodes
The Vulkan renderer creates a fallback surface for each shadow
node, even if we end up not rendering anything to it. Avoiding
this is a nice optimization.
Diffstat (limited to 'gtk/gtkcssshadowvalueprivate.h')
-rw-r--r-- | gtk/gtkcssshadowvalueprivate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcssshadowvalueprivate.h b/gtk/gtkcssshadowvalueprivate.h index 2c139c86e8..e3113d106a 100644 --- a/gtk/gtkcssshadowvalueprivate.h +++ b/gtk/gtkcssshadowvalueprivate.h @@ -59,6 +59,8 @@ void gtk_css_shadow_value_snapshot_inset (const GtkCssValue GtkSnapshot *snapshot, const GskRoundedRect *padding_box); +gboolean gtk_css_shadow_value_is_clear (const GtkCssValue *shadow); + G_END_DECLS #endif /* __GTK_SHADOW_H__ */ |