Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(593)

Unified Diff: cc/trees/layer_tree_host.cc

Issue 476113004: Replace overdraw_bottom_height with top_controls_layout_height. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ScrollViewportRounding test Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index a539d13bab87da1cd515e544442197341bb41814..343c503982851aeb8d4d3d6a586be6d475409db9 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -106,7 +106,7 @@ LayerTreeHost::LayerTreeHost(LayerTreeHostClient* client,
num_failed_recreate_attempts_(0),
settings_(settings),
debug_state_(settings.initial_debug_state),
- overdraw_bottom_height_(0.f),
+ top_controls_layout_height_(0.f),
device_scale_factor_(1.f),
visible_(true),
page_scale_factor_(1.f),
@@ -351,7 +351,7 @@ void LayerTreeHost::FinishCommitOnImplThread(LayerTreeHostImpl* host_impl) {
RecordGpuRasterizationHistogram();
host_impl->SetViewportSize(device_viewport_size_);
- host_impl->SetOverdrawBottomHeight(overdraw_bottom_height_);
+ host_impl->SetTopControlsLayoutHeight(top_controls_layout_height_);
host_impl->SetDeviceScaleFactor(device_scale_factor_);
host_impl->SetDebugState(debug_state_);
if (pending_page_scale_animation_) {
@@ -627,11 +627,12 @@ void LayerTreeHost::SetViewportSize(const gfx::Size& device_viewport_size) {
SetNeedsCommit();
}
-void LayerTreeHost::SetOverdrawBottomHeight(float overdraw_bottom_height) {
- if (overdraw_bottom_height_ == overdraw_bottom_height)
+void LayerTreeHost::SetTopControlsLayoutHeight(
+ float top_controls_layout_height) {
+ if (top_controls_layout_height_ == top_controls_layout_height)
return;
- overdraw_bottom_height_ = overdraw_bottom_height;
+ top_controls_layout_height_ = top_controls_layout_height;
SetNeedsCommit();
}
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698