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

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

Issue 1421483005: Reland: Remove DCHECK_IMPLIES/CHECK_IMPLIES. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « cc/tiles/tile_manager_unittest.cc ('k') | cc/trees/layer_tree_host_common.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 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 957
958 const UIResourceClientData& data = iter->second; 958 const UIResourceClientData& data = iter->second;
959 return data.size; 959 return data.size;
960 } 960 }
961 961
962 void LayerTreeHost::RegisterViewportLayers( 962 void LayerTreeHost::RegisterViewportLayers(
963 scoped_refptr<Layer> overscroll_elasticity_layer, 963 scoped_refptr<Layer> overscroll_elasticity_layer,
964 scoped_refptr<Layer> page_scale_layer, 964 scoped_refptr<Layer> page_scale_layer,
965 scoped_refptr<Layer> inner_viewport_scroll_layer, 965 scoped_refptr<Layer> inner_viewport_scroll_layer,
966 scoped_refptr<Layer> outer_viewport_scroll_layer) { 966 scoped_refptr<Layer> outer_viewport_scroll_layer) {
967 DCHECK_IMPLIES(inner_viewport_scroll_layer, 967 DCHECK(!inner_viewport_scroll_layer ||
968 inner_viewport_scroll_layer != outer_viewport_scroll_layer); 968 inner_viewport_scroll_layer != outer_viewport_scroll_layer);
969 overscroll_elasticity_layer_ = overscroll_elasticity_layer; 969 overscroll_elasticity_layer_ = overscroll_elasticity_layer;
970 page_scale_layer_ = page_scale_layer; 970 page_scale_layer_ = page_scale_layer;
971 inner_viewport_scroll_layer_ = inner_viewport_scroll_layer; 971 inner_viewport_scroll_layer_ = inner_viewport_scroll_layer;
972 outer_viewport_scroll_layer_ = outer_viewport_scroll_layer; 972 outer_viewport_scroll_layer_ = outer_viewport_scroll_layer;
973 } 973 }
974 974
975 void LayerTreeHost::RegisterSelection(const LayerSelection& selection) { 975 void LayerTreeHost::RegisterSelection(const LayerSelection& selection) {
976 if (selection_ == selection) 976 if (selection_ == selection)
977 return; 977 return;
978 978
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 return animation_host_ ? animation_host_->HasAnyAnimation(layer->id()) 1229 return animation_host_ ? animation_host_->HasAnyAnimation(layer->id())
1230 : false; 1230 : false;
1231 } 1231 }
1232 1232
1233 bool LayerTreeHost::HasActiveAnimation(const Layer* layer) const { 1233 bool LayerTreeHost::HasActiveAnimation(const Layer* layer) const {
1234 return animation_host_ ? animation_host_->HasActiveAnimation(layer->id()) 1234 return animation_host_ ? animation_host_->HasActiveAnimation(layer->id())
1235 : false; 1235 : false;
1236 } 1236 }
1237 1237
1238 } // namespace cc 1238 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiles/tile_manager_unittest.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698