Index: cc/layers/layer.h |
diff --git a/cc/layers/layer.h b/cc/layers/layer.h |
index e18369303b6a5e655ededcc2641fd52ef80c5455..b8e77778b4857ba51a52e95d07ec4f3e81e45df8 100644 |
--- a/cc/layers/layer.h |
+++ b/cc/layers/layer.h |
@@ -437,6 +437,9 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> { |
LayerTreeHost* layer_tree_host() const { return layer_tree_host_; } |
+ // Called on the scroll layer to trigger showing the overlay scrollbars. |
+ void ShowScrollbars() { needs_show_scrollbars_ = true; } |
+ |
protected: |
friend class LayerImpl; |
friend class TreeSynchronizer; |
@@ -632,6 +635,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> { |
bool subtree_property_changed_ : 1; |
bool may_contain_video_ : 1; |
bool is_scroll_clip_layer_ : 1; |
+ bool needs_show_scrollbars_ : 1; |
SkColor safe_opaque_background_color_; |
// draw_blend_mode may be different than blend_mode_, |
// when a RenderSurface re-parents the layer's blend_mode. |