Index: cc/trees/layer_tree_host.cc |
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc |
index 8e0493a8c1af61f5f87ab840f4ae5be1a468df18..809699b56c9c0fab64c7f370471dcc41ddb2a35f 100644 |
--- a/cc/trees/layer_tree_host.cc |
+++ b/cc/trees/layer_tree_host.cc |
@@ -516,6 +516,7 @@ void LayerTreeHost::FinishCommitOnImplThread(LayerTreeHostImpl* host_impl) { |
sync_tree->set_top_controls_shrink_blink_size( |
top_controls_shrink_blink_size_); |
sync_tree->set_top_controls_height(top_controls_height_); |
+ sync_tree->set_bottom_controls_height(bottom_controls_height_); |
Khushal
2016/08/17 04:45:34
The commit step now happens in LayerTree::PushProp
|
sync_tree->PushTopControlsFromMainThread(top_controls_shown_ratio_); |
host_impl->SetHasGpuRasterizationTrigger(has_gpu_rasterization_trigger_); |
@@ -827,6 +828,14 @@ void LayerTreeHost::SetTopControlsShownRatio(float ratio) { |
SetNeedsCommit(); |
} |
+void LayerTreeHost::setBottomControlHeight(float height) { |
+ if (bottom_controls_height_ == height) |
+ return; |
+ |
+ bottom_controls_height_ = height; |
+ SetNeedsCommit(); |
+} |
+ |
void LayerTreeHost::ApplyPageScaleDeltaFromImplSide(float page_scale_delta) { |
DCHECK(CommitRequested()); |
if (page_scale_delta == 1.f) |