| 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" | |
| 6 | |
| 7 #include "cc/debug_rect_history.h" | 5 #include "cc/debug_rect_history.h" |
| 8 | 6 |
| 9 #include "cc/damage_tracker.h" | 7 #include "cc/damage_tracker.h" |
| 10 #include "cc/layer_impl.h" | 8 #include "cc/layer_impl.h" |
| 11 #include "cc/layer_tree_host.h" | 9 #include "cc/layer_tree_host.h" |
| 12 #include "cc/math_util.h" | 10 #include "cc/math_util.h" |
| 13 | 11 |
| 14 namespace cc { | 12 namespace cc { |
| 15 | 13 |
| 16 // static | 14 // static |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 } | 112 } |
| 115 } | 113 } |
| 116 | 114 |
| 117 void DebugRectHistory::saveOccludingRects(const std::vector<gfx::Rect>& occludin
gRects) | 115 void DebugRectHistory::saveOccludingRects(const std::vector<gfx::Rect>& occludin
gRects) |
| 118 { | 116 { |
| 119 for (size_t i = 0; i < occludingRects.size(); ++i) | 117 for (size_t i = 0; i < occludingRects.size(); ++i) |
| 120 m_debugRects.push_back(DebugRect(OccludingRectType, occludingRects[i])); | 118 m_debugRects.push_back(DebugRect(OccludingRectType, occludingRects[i])); |
| 121 } | 119 } |
| 122 | 120 |
| 123 } // namespace cc | 121 } // namespace cc |
| OLD | NEW |