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 #include "cc/trees/tree_synchronizer.h" | 5 #include "cc/trees/tree_synchronizer.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
10 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 CheckScrollAndClipPointersRecursive(layer->child_at(i), | 290 CheckScrollAndClipPointersRecursive(layer->child_at(i), |
291 layer_impl->child_at(i)); | 291 layer_impl->child_at(i)); |
292 } | 292 } |
293 } | 293 } |
294 | 294 |
295 void TreeSynchronizer::PushProperties(Layer* layer, | 295 void TreeSynchronizer::PushProperties(Layer* layer, |
296 LayerImpl* layer_impl) { | 296 LayerImpl* layer_impl) { |
297 size_t num_dependents_need_push_properties = 0; | 297 size_t num_dependents_need_push_properties = 0; |
298 PushPropertiesInternal( | 298 PushPropertiesInternal( |
299 layer, layer_impl, &num_dependents_need_push_properties); | 299 layer, layer_impl, &num_dependents_need_push_properties); |
300 #if DCHECK_IS_ON | 300 #if DCHECK_IS_ON() |
301 CheckScrollAndClipPointersRecursive(layer, layer_impl); | 301 CheckScrollAndClipPointersRecursive(layer, layer_impl); |
302 #endif | 302 #endif |
303 } | 303 } |
304 | 304 |
305 void TreeSynchronizer::PushProperties(LayerImpl* layer, LayerImpl* layer_impl) { | 305 void TreeSynchronizer::PushProperties(LayerImpl* layer, LayerImpl* layer_impl) { |
306 size_t num_dependents_need_push_properties = 0; | 306 size_t num_dependents_need_push_properties = 0; |
307 PushPropertiesInternal( | 307 PushPropertiesInternal( |
308 layer, layer_impl, &num_dependents_need_push_properties); | 308 layer, layer_impl, &num_dependents_need_push_properties); |
309 } | 309 } |
310 | 310 |
311 } // namespace cc | 311 } // namespace cc |
OLD | NEW |