Index: cc/layer_tree_host_impl.cc |
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc |
index d1e90409007a922b5268a96b5b7f4a61af1e3151..8d59c44b6448ae8a6073af59c4ddb4db9c3ac638 100644 |
--- a/cc/layer_tree_host_impl.cc |
+++ b/cc/layer_tree_host_impl.cc |
@@ -163,8 +163,12 @@ LayerTreeHostImpl::LayerTreeHostImpl(const LayerTreeSettings& settings, LayerTre |
DCHECK(m_proxy->isImplThread()); |
didVisibilityChange(this, m_visible); |
- if (settings.calculateTopControlsPosition) |
- m_topControlsManager = TopControlsManager::Create(this, settings.topControlsHeight); |
+ if (settings.calculateTopControlsPosition) { |
+ m_topControlsManager = TopControlsManager::Create(this, |
+ settings.topControlsHeight, |
+ settings.topControlsShowThreshold, |
+ settings.topControlsHideThreshold); |
+ } |
// LTHI always has an active tree. |
m_activeTree = LayerTreeImpl::create(this); |