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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "cc/layers/layer_impl.h" | 13 #include "cc/layers/layer_impl.h" |
14 #include "ui/base/latency_info.h" | 14 #include "ui/base/latency_info.h" |
15 | 15 |
16 #if defined(COMPILER_GCC) | 16 #if defined(COMPILER_GCC) |
17 namespace BASE_HASH_NAMESPACE { | 17 namespace BASE_HASH_NAMESPACE { |
18 template<> | 18 template<> |
19 struct hash<cc::LayerImpl*> { | 19 struct hash<cc::LayerImpl*> { |
20 size_t operator()(cc::LayerImpl* ptr) const { | 20 size_t operator()(cc::LayerImpl* ptr) const { |
21 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); | 21 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 bool needs_full_tree_sync_; | 234 bool needs_full_tree_sync_; |
235 | 235 |
236 ui::LatencyInfo latency_info_; | 236 ui::LatencyInfo latency_info_; |
237 | 237 |
238 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 238 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
239 }; | 239 }; |
240 | 240 |
241 } // namespace cc | 241 } // namespace cc |
242 | 242 |
243 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 243 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |