OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/region.h" | 5 #include "cc/region.h" |
6 | 6 |
7 namespace cc { | 7 namespace cc { |
8 | 8 |
9 Region::Region() { | 9 Region::Region() { |
10 } | 10 } |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 std::string result; | 97 std::string result; |
98 for (Iterator it(*this); it.has_rect(); it.next()) { | 98 for (Iterator it(*this); it.has_rect(); it.next()) { |
99 if (!result.empty()) | 99 if (!result.empty()) |
100 result += " | "; | 100 result += " | "; |
101 result += it.rect().ToString(); | 101 result += it.rect().ToString(); |
102 } | 102 } |
103 return result; | 103 return result; |
104 } | 104 } |
105 | 105 |
| 106 Region::Iterator::Iterator() { |
| 107 } |
| 108 |
106 Region::Iterator::Iterator(const Region& region) | 109 Region::Iterator::Iterator(const Region& region) |
107 : it_(region.skregion_) { | 110 : it_(region.skregion_) { |
108 } | 111 } |
109 | 112 |
110 Region::Iterator::~Iterator() { | 113 Region::Iterator::~Iterator() { |
111 } | 114 } |
112 | 115 |
113 } // namespace cc | 116 } // namespace cc |
OLD | NEW |