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 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
7 | 7 |
8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "cc/layer_impl.h" | 10 #include "cc/layers/layer_impl.h" |
11 | 11 |
12 #if defined(COMPILER_GCC) | 12 #if defined(COMPILER_GCC) |
13 namespace BASE_HASH_NAMESPACE { | 13 namespace BASE_HASH_NAMESPACE { |
14 template<> | 14 template<> |
15 struct hash<cc::LayerImpl*> { | 15 struct hash<cc::LayerImpl*> { |
16 size_t operator()(cc::LayerImpl* ptr) const { | 16 size_t operator()(cc::LayerImpl* ptr) const { |
17 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); | 17 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); |
18 } | 18 } |
19 }; | 19 }; |
20 } // namespace BASE_HASH_NAMESPACE | 20 } // namespace BASE_HASH_NAMESPACE |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // In impl-side painting mode, this is true when the tree may contain | 244 // In impl-side painting mode, this is true when the tree may contain |
245 // structural differences relative to the active tree. | 245 // structural differences relative to the active tree. |
246 bool needs_full_tree_sync_; | 246 bool needs_full_tree_sync_; |
247 | 247 |
248 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 248 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
249 }; | 249 }; |
250 | 250 |
251 } | 251 } |
252 | 252 |
253 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 253 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |