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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 13637017: Delete layout_viewport_size. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android Created 7 years, 8 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_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 7152fcbb5f7bb94c98e6a163deeb4eef3d01d7d2..c9c21a8cc87de6334a6c093b65abd5da6130c842 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1365,16 +1365,13 @@ bool LayerTreeHostImpl::InitializeRenderer(
return true;
}
-void LayerTreeHostImpl::SetViewportSize(gfx::Size layout_viewport_size,
- gfx::Size device_viewport_size) {
- if (layout_viewport_size == layout_viewport_size_ &&
- device_viewport_size == device_viewport_size_)
+void LayerTreeHostImpl::SetViewportSize(gfx::Size device_viewport_size) {
+ if (device_viewport_size == device_viewport_size_)
return;
if (pending_tree_ && device_viewport_size_ != device_viewport_size)
active_tree_->SetViewportSizeInvalid();
- layout_viewport_size_ = layout_viewport_size;
device_viewport_size_ = device_viewport_size;
UpdateMaxScrollOffset();
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698