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

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

Issue 2851193002: cc: Rename LayerImpl::is_drawn_render_surface_layer_list_member (Closed)
Patch Set: Rebase Created 3 years, 7 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 | « cc/trees/damage_tracker_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/debug_rect_history.h" 5 #include "cc/trees/debug_rect_history.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "cc/base/math_util.h" 10 #include "cc/base/math_util.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 iter.has_rect(); iter.next()) { 190 iter.has_rect(); iter.next()) {
191 debug_rects_.push_back( 191 debug_rects_.push_back(
192 DebugRect(NON_FAST_SCROLLABLE_RECT_TYPE, 192 DebugRect(NON_FAST_SCROLLABLE_RECT_TYPE,
193 MathUtil::MapEnclosingClippedRect( 193 MathUtil::MapEnclosingClippedRect(
194 layer->ScreenSpaceTransform(), iter.rect()))); 194 layer->ScreenSpaceTransform(), iter.rect())));
195 } 195 }
196 } 196 }
197 197
198 void DebugRectHistory::SaveLayerAnimationBoundsRects(LayerTreeImpl* tree_impl) { 198 void DebugRectHistory::SaveLayerAnimationBoundsRects(LayerTreeImpl* tree_impl) {
199 for (auto it = tree_impl->rbegin(); it != tree_impl->rend(); ++it) { 199 for (auto it = tree_impl->rbegin(); it != tree_impl->rend(); ++it) {
200 if (!(*it)->is_drawn_render_surface_layer_list_member()) 200 if (!(*it)->contributes_to_drawn_render_surface())
201 continue; 201 continue;
202 202
203 // TODO(avallee): Figure out if we should show something for a layer who's 203 // TODO(avallee): Figure out if we should show something for a layer who's
204 // animating bounds but that we can't compute them. 204 // animating bounds but that we can't compute them.
205 gfx::BoxF inflated_bounds; 205 gfx::BoxF inflated_bounds;
206 if (!LayerUtils::GetAnimationBounds(**it, &inflated_bounds)) 206 if (!LayerUtils::GetAnimationBounds(**it, &inflated_bounds))
207 continue; 207 continue;
208 208
209 debug_rects_.push_back( 209 debug_rects_.push_back(
210 DebugRect(ANIMATION_BOUNDS_RECT_TYPE, 210 DebugRect(ANIMATION_BOUNDS_RECT_TYPE,
211 gfx::ToEnclosingRect(gfx::RectF( 211 gfx::ToEnclosingRect(gfx::RectF(
212 inflated_bounds.x(), inflated_bounds.y(), 212 inflated_bounds.x(), inflated_bounds.y(),
213 inflated_bounds.width(), inflated_bounds.height())))); 213 inflated_bounds.width(), inflated_bounds.height()))));
214 } 214 }
215 } 215 }
216 216
217 } // namespace cc 217 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/damage_tracker_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