OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 #ifndef CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
7 | 7 |
| 8 #include <vector> |
| 9 |
8 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
9 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
10 #include "cc/base/scoped_ptr_vector.h" | 12 #include "cc/base/scoped_ptr_vector.h" |
11 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
12 #include "ui/gfx/transform.h" | 14 #include "ui/gfx/transform.h" |
13 #include "ui/gfx/vector2d.h" | 15 #include "ui/gfx/vector2d.h" |
14 | 16 |
15 namespace cc { | 17 namespace cc { |
16 | 18 |
17 class LayerImpl; | 19 class LayerImpl; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 143 |
142 for (size_t i = 0; i < root_layer->children().size(); ++i) { | 144 for (size_t i = 0; i < root_layer->children().size(); ++i) { |
143 CallFunctionForSubtree<Function>( | 145 CallFunctionForSubtree<Function>( |
144 get_child_as_raw_ptr(root_layer->children(), i)); | 146 get_child_as_raw_ptr(root_layer->children(), i)); |
145 } | 147 } |
146 } | 148 } |
147 | 149 |
148 } // namespace cc | 150 } // namespace cc |
149 | 151 |
150 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 152 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
OLD | NEW |