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

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

Issue 2035863003: cc: Add mask and replica layer ids to the effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 6 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/layers/layer_impl.h » ('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/debug/debug_rect_history.h" 5 #include "cc/debug/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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 LayerImpl* render_surface_layer = render_surface_layer_list[surface_index]; 140 LayerImpl* render_surface_layer = render_surface_layer_list[surface_index];
141 RenderSurfaceImpl* render_surface = render_surface_layer->render_surface(); 141 RenderSurfaceImpl* render_surface = render_surface_layer->render_surface();
142 DCHECK(render_surface); 142 DCHECK(render_surface);
143 143
144 debug_rects_.push_back( 144 debug_rects_.push_back(
145 DebugRect(SCREEN_SPACE_RECT_TYPE, 145 DebugRect(SCREEN_SPACE_RECT_TYPE,
146 MathUtil::MapEnclosingClippedRect( 146 MathUtil::MapEnclosingClippedRect(
147 render_surface->screen_space_transform(), 147 render_surface->screen_space_transform(),
148 render_surface->content_rect()))); 148 render_surface->content_rect())));
149 149
150 if (render_surface_layer->replica_layer()) { 150 if (render_surface->HasReplica()) {
151 debug_rects_.push_back( 151 debug_rects_.push_back(
152 DebugRect(REPLICA_SCREEN_SPACE_RECT_TYPE, 152 DebugRect(REPLICA_SCREEN_SPACE_RECT_TYPE,
153 MathUtil::MapEnclosingClippedRect( 153 MathUtil::MapEnclosingClippedRect(
154 render_surface->replica_screen_space_transform(), 154 render_surface->replica_screen_space_transform(),
155 render_surface->content_rect()))); 155 render_surface->content_rect())));
156 } 156 }
157 } 157 }
158 } 158 }
159 159
160 void DebugRectHistory::SaveTouchEventHandlerRects(LayerTreeImpl* tree_impl) { 160 void DebugRectHistory::SaveTouchEventHandlerRects(LayerTreeImpl* tree_impl) {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 debug_rects_.push_back( 245 debug_rects_.push_back(
246 DebugRect(ANIMATION_BOUNDS_RECT_TYPE, 246 DebugRect(ANIMATION_BOUNDS_RECT_TYPE,
247 gfx::ToEnclosingRect(gfx::RectF(inflated_bounds.x(), 247 gfx::ToEnclosingRect(gfx::RectF(inflated_bounds.x(),
248 inflated_bounds.y(), 248 inflated_bounds.y(),
249 inflated_bounds.width(), 249 inflated_bounds.width(),
250 inflated_bounds.height())))); 250 inflated_bounds.height()))));
251 } 251 }
252 } 252 }
253 253
254 } // namespace cc 254 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698