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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "cc/debug_rect_history.h" | 7 #include "cc/debug_rect_history.h" |
8 | 8 |
9 #include "cc/damage_tracker.h" | 9 #include "cc/damage_tracker.h" |
10 #include "cc/layer_impl.h" | 10 #include "cc/layer_impl.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 m_debugRects.push_back(DebugRect(ScreenSpaceRectType, MathUtil::mapClipp
edRect(renderSurface->screenSpaceTransform(), renderSurface->contentRect()))); | 110 m_debugRects.push_back(DebugRect(ScreenSpaceRectType, MathUtil::mapClipp
edRect(renderSurface->screenSpaceTransform(), renderSurface->contentRect()))); |
111 | 111 |
112 if (renderSurfaceLayer->replicaLayer()) | 112 if (renderSurfaceLayer->replicaLayer()) |
113 m_debugRects.push_back(DebugRect(ReplicaScreenSpaceRectType, MathUti
l::mapClippedRect(renderSurface->replicaScreenSpaceTransform(), renderSurface->c
ontentRect()))); | 113 m_debugRects.push_back(DebugRect(ReplicaScreenSpaceRectType, MathUti
l::mapClippedRect(renderSurface->replicaScreenSpaceTransform(), renderSurface->c
ontentRect()))); |
114 } | 114 } |
115 } | 115 } |
116 | 116 |
117 void DebugRectHistory::saveOccludingRects(const std::vector<gfx::Rect>& occludin
gRects) | 117 void DebugRectHistory::saveOccludingRects(const std::vector<gfx::Rect>& occludin
gRects) |
118 { | 118 { |
119 for (size_t i = 0; i < occludingRects.size(); ++i) | 119 for (size_t i = 0; i < occludingRects.size(); ++i) |
120 m_debugRects.push_back(DebugRect(OccludingRectType, cc::FloatRect(occlud
ingRects[i]))); | 120 m_debugRects.push_back(DebugRect(OccludingRectType, occludingRects[i])); |
121 } | 121 } |
122 | 122 |
123 } // namespace cc | 123 } // namespace cc |
OLD | NEW |