Index: ui/gfx/compositor/layer.h |
diff --git a/ui/gfx/compositor/layer.h b/ui/gfx/compositor/layer.h |
index 3d63f034f24e06b6fc823eb47c1b06bc25ed9c81..c449e88e70809a286d8747c0659c2d007a711bbf 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. |