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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/gfx/compositor/layer.h b/ui/gfx/compositor/layer.h
index 0850fdb..865a427 100644
--- a/ui/gfx/compositor/layer.h
+++ b/ui/gfx/compositor/layer.h
@@ -72,6 +72,10 @@ class COMPOSITOR_EXPORT Layer {
bool visible() const { return visible_; }
void set_visible(bool visible) { visible_ = visible; }
+ // Returns true if this layer can have a texture (has_texture_ is true)
+ // and is not completely obscured by a child.
+ bool ShouldDraw();
+
// Converts a point from the coordinates of |source| to the coordinates of
// |target|. Necessarily, |source| and |target| must inhabit the same Layer
// tree.
@@ -184,6 +188,9 @@ class COMPOSITOR_EXPORT Layer {
bool visible_;
+ // If true, layer can have non-null texture.
+ const bool can_have_texture_;
+
bool fills_bounds_opaquely_;
gfx::Rect hole_rect_;