summaryrefslogtreecommitdiffstats
path: root/ui/gfx/compositor/layer.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/compositor/layer.h')
-rw-r--r--ui/gfx/compositor/layer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gfx/compositor/layer.h b/ui/gfx/compositor/layer.h
index 3d63f03..c449e88 100644
--- a/ui/gfx/compositor/layer.h
+++ b/ui/gfx/compositor/layer.h
@@ -105,6 +105,7 @@ class COMPOSITOR_EXPORT Layer : public LayerAnimatorDelegate {
// Sets the visibility of the Layer. A Layer may be visible but not
// drawn. This happens if any ancestor of a Layer is not visible.
void SetVisible(bool visible);
+ bool visible() const { return visible_; }
// Returns true if this Layer is drawn. A Layer is drawn only if all ancestors
// are visible.