Chromium Code Reviews| 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 <limits> | 8 #include <limits> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 size_t index) { | 132 size_t index) { |
| 133 return children[index].get(); | 133 return children[index].get(); |
| 134 } | 134 } |
| 135 | 135 |
| 136 static LayerImpl* get_child_as_raw_ptr( | 136 static LayerImpl* get_child_as_raw_ptr( |
| 137 const OwnedLayerImplList& children, | 137 const OwnedLayerImplList& children, |
| 138 size_t index) { | 138 size_t index) { |
| 139 return children[index]; | 139 return children[index]; |
| 140 } | 140 } |
| 141 | 141 |
| 142 static LayerImpl* get_child_as_raw_ptr(const LayerImplList& children, | |
|
danakj
2014/04/25 22:59:24
Would you mind doing a followup CL to rename all t
Ian Vollick
2014/04/25 23:14:39
Totally.
| |
| 143 size_t index) { | |
| 144 return children[index]; | |
| 145 } | |
| 146 | |
| 142 struct ScrollUpdateInfo { | 147 struct ScrollUpdateInfo { |
| 143 int layer_id; | 148 int layer_id; |
| 144 gfx::Vector2d scroll_delta; | 149 gfx::Vector2d scroll_delta; |
| 145 }; | 150 }; |
| 146 }; | 151 }; |
| 147 | 152 |
| 148 struct CC_EXPORT ScrollAndScaleSet { | 153 struct CC_EXPORT ScrollAndScaleSet { |
| 149 ScrollAndScaleSet(); | 154 ScrollAndScaleSet(); |
| 150 ~ScrollAndScaleSet(); | 155 ~ScrollAndScaleSet(); |
| 151 | 156 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 255 true, | 260 true, |
| 256 false, | 261 false, |
| 257 render_surface_layer_list) { | 262 render_surface_layer_list) { |
| 258 DCHECK(root_layer); | 263 DCHECK(root_layer); |
| 259 DCHECK(render_surface_layer_list); | 264 DCHECK(render_surface_layer_list); |
| 260 } | 265 } |
| 261 | 266 |
| 262 } // namespace cc | 267 } // namespace cc |
| 263 | 268 |
| 264 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 269 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
| OLD | NEW |