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

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 1365343002: Ensure the viewport is always represented by the inner viewport layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix more tests. Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <stack> 8 #include <stack>
9 #include <string> 9 #include <string>
10 10
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 962
963 const UIResourceClientData& data = iter->second; 963 const UIResourceClientData& data = iter->second;
964 return data.size; 964 return data.size;
965 } 965 }
966 966
967 void LayerTreeHost::RegisterViewportLayers( 967 void LayerTreeHost::RegisterViewportLayers(
968 scoped_refptr<Layer> overscroll_elasticity_layer, 968 scoped_refptr<Layer> overscroll_elasticity_layer,
969 scoped_refptr<Layer> page_scale_layer, 969 scoped_refptr<Layer> page_scale_layer,
970 scoped_refptr<Layer> inner_viewport_scroll_layer, 970 scoped_refptr<Layer> inner_viewport_scroll_layer,
971 scoped_refptr<Layer> outer_viewport_scroll_layer) { 971 scoped_refptr<Layer> outer_viewport_scroll_layer) {
972 DCHECK_IMPLIES(inner_viewport_scroll_layer,
973 inner_viewport_scroll_layer != outer_viewport_scroll_layer);
972 overscroll_elasticity_layer_ = overscroll_elasticity_layer; 974 overscroll_elasticity_layer_ = overscroll_elasticity_layer;
973 page_scale_layer_ = page_scale_layer; 975 page_scale_layer_ = page_scale_layer;
974 inner_viewport_scroll_layer_ = inner_viewport_scroll_layer; 976 inner_viewport_scroll_layer_ = inner_viewport_scroll_layer;
975 outer_viewport_scroll_layer_ = outer_viewport_scroll_layer; 977 outer_viewport_scroll_layer_ = outer_viewport_scroll_layer;
976 } 978 }
977 979
978 void LayerTreeHost::RegisterSelection(const LayerSelection& selection) { 980 void LayerTreeHost::RegisterSelection(const LayerSelection& selection) {
979 if (selection_ == selection) 981 if (selection_ == selection)
980 return; 982 return;
981 983
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 return animation_host_ ? animation_host_->HasAnyAnimation(layer->id()) 1230 return animation_host_ ? animation_host_->HasAnyAnimation(layer->id())
1229 : false; 1231 : false;
1230 } 1232 }
1231 1233
1232 bool LayerTreeHost::HasActiveAnimation(const Layer* layer) const { 1234 bool LayerTreeHost::HasActiveAnimation(const Layer* layer) const {
1233 return animation_host_ ? animation_host_->HasActiveAnimation(layer->id()) 1235 return animation_host_ ? animation_host_->HasActiveAnimation(layer->id())
1234 : false; 1236 : false;
1235 } 1237 }
1236 1238
1237 } // namespace cc 1239 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698