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 CCLayerTreeHost_h | 5 #ifndef CCLayerTreeHost_h |
6 #define CCLayerTreeHost_h | 6 #define CCLayerTreeHost_h |
7 | 7 |
| 8 #include <limits> |
| 9 |
8 #include "CCAnimationEvents.h" | 10 #include "CCAnimationEvents.h" |
9 #include "CCGraphicsContext.h" | 11 #include "CCGraphicsContext.h" |
10 #include "CCLayerTreeHostClient.h" | 12 #include "CCLayerTreeHostClient.h" |
11 #include "CCLayerTreeHostCommon.h" | 13 #include "CCLayerTreeHostCommon.h" |
12 #include "CCOcclusionTracker.h" | |
13 #include "CCPrioritizedTextureManager.h" | |
14 #include "CCProxy.h" | |
15 #include "IntRect.h" | 14 #include "IntRect.h" |
16 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
17 #include "base/hash_tables.h" | 16 #include "base/hash_tables.h" |
18 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
19 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
| 19 #include "cc/occlusion_tracker.h" |
| 20 #include "cc/prioritized_texture_manager.h" |
| 21 #include "cc/proxy.h" |
20 #include "cc/rate_limiter.h" | 22 #include "cc/rate_limiter.h" |
21 #include "cc/rendering_stats.h" | 23 #include "cc/rendering_stats.h" |
22 #include "cc/scoped_ptr_vector.h" | 24 #include "cc/scoped_ptr_vector.h" |
23 #include "third_party/skia/include/core/SkColor.h" | 25 #include "third_party/skia/include/core/SkColor.h" |
24 #include <limits> | |
25 | 26 |
26 #if defined(COMPILER_GCC) | 27 #if defined(COMPILER_GCC) |
27 namespace BASE_HASH_NAMESPACE { | 28 namespace BASE_HASH_NAMESPACE { |
28 template<> | 29 template<> |
29 struct hash<WebKit::WebGraphicsContext3D*> { | 30 struct hash<WebKit::WebGraphicsContext3D*> { |
30 size_t operator()(WebKit::WebGraphicsContext3D* ptr) const { | 31 size_t operator()(WebKit::WebGraphicsContext3D* ptr) const { |
31 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); | 32 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); |
32 } | 33 } |
33 }; | 34 }; |
34 } // namespace BASE_HASH_NAMESPACE | 35 } // namespace BASE_HASH_NAMESPACE |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 size_t m_partialTextureUpdateRequests; | 273 size_t m_partialTextureUpdateRequests; |
273 | 274 |
274 static bool s_needsFilterContext; | 275 static bool s_needsFilterContext; |
275 | 276 |
276 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHost); | 277 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHost); |
277 }; | 278 }; |
278 | 279 |
279 } // namespace cc | 280 } // namespace cc |
280 | 281 |
281 #endif | 282 #endif |
OLD | NEW |