| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |