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_LAYER_TREE_HOST_H_ | 5 #ifndef CC_LAYER_TREE_HOST_H_ |
6 #define CC_LAYER_TREE_HOST_H_ | 6 #define CC_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/cancelable_callback.h" | 11 #include "base/cancelable_callback.h" |
12 #include "base/hash_tables.h" | 12 #include "base/hash_tables.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
16 #include "cc/animation_events.h" | 16 #include "cc/animation_events.h" |
17 #include "cc/cc_export.h" | 17 #include "cc/cc_export.h" |
18 #include "cc/layer_tree_host_client.h" | 18 #include "cc/layer_tree_host_client.h" |
19 #include "cc/layer_tree_host_common.h" | 19 #include "cc/layer_tree_host_common.h" |
20 #include "cc/layer_tree_settings.h" | 20 #include "cc/layer_tree_settings.h" |
21 #include "cc/occlusion_tracker.h" | 21 #include "cc/occlusion_tracker.h" |
22 #include "cc/output_surface.h" | 22 #include "cc/output_surface.h" |
23 #include "cc/prioritized_resource_manager.h" | |
24 #include "cc/proxy.h" | 23 #include "cc/proxy.h" |
25 #include "cc/rate_limiter.h" | 24 #include "cc/rate_limiter.h" |
26 #include "cc/rendering_stats.h" | 25 #include "cc/rendering_stats.h" |
27 #include "cc/scoped_ptr_vector.h" | 26 #include "cc/scoped_ptr_vector.h" |
28 #include "third_party/skia/include/core/SkColor.h" | 27 #include "third_party/skia/include/core/SkColor.h" |
29 #include "ui/gfx/rect.h" | 28 #include "ui/gfx/rect.h" |
30 | 29 |
31 #if defined(COMPILER_GCC) | 30 #if defined(COMPILER_GCC) |
32 namespace BASE_HASH_NAMESPACE { | 31 namespace BASE_HASH_NAMESPACE { |
33 template<> | 32 template<> |
34 struct hash<WebKit::WebGraphicsContext3D*> { | 33 struct hash<WebKit::WebGraphicsContext3D*> { |
35 size_t operator()(WebKit::WebGraphicsContext3D* ptr) const { | 34 size_t operator()(WebKit::WebGraphicsContext3D* ptr) const { |
36 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); | 35 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); |
37 } | 36 } |
38 }; | 37 }; |
39 } // namespace BASE_HASH_NAMESPACE | 38 } // namespace BASE_HASH_NAMESPACE |
40 #endif // COMPILER | 39 #endif // COMPILER |
41 | 40 |
42 namespace cc { | 41 namespace cc { |
43 | 42 |
44 class AnimationRegistrar; | 43 class AnimationRegistrar; |
45 class Layer; | 44 class Layer; |
46 class LayerTreeHostImpl; | 45 class LayerTreeHostImpl; |
47 class LayerTreeHostImplClient; | 46 class LayerTreeHostImplClient; |
48 class PrioritizedResourceManager; | 47 class PrioritizedResourceManager; |
| 48 class PrioritizedResource; |
| 49 class ResourceProvider; |
49 class ResourceUpdateQueue; | 50 class ResourceUpdateQueue; |
50 class HeadsUpDisplayLayer; | 51 class HeadsUpDisplayLayer; |
51 class Region; | 52 class Region; |
52 struct ScrollAndScaleSet; | 53 struct ScrollAndScaleSet; |
53 | 54 |
54 | 55 |
55 // Provides information on an Impl's rendering capabilities back to the LayerTre
eHost | 56 // Provides information on an Impl's rendering capabilities back to the LayerTre
eHost |
56 struct CC_EXPORT RendererCapabilities { | 57 struct CC_EXPORT RendererCapabilities { |
57 RendererCapabilities(); | 58 RendererCapabilities(); |
58 ~RendererCapabilities(); | 59 ~RendererCapabilities(); |
59 | 60 |
60 GLenum bestTextureFormat; | 61 unsigned bestTextureFormat; |
61 bool usingPartialSwap; | 62 bool usingPartialSwap; |
62 bool usingAcceleratedPainting; | 63 bool usingAcceleratedPainting; |
63 bool usingSetVisibility; | 64 bool usingSetVisibility; |
64 bool usingSwapCompleteCallback; | 65 bool usingSwapCompleteCallback; |
65 bool usingGpuMemoryManager; | 66 bool usingGpuMemoryManager; |
66 bool usingDiscardBackbuffer; | 67 bool usingDiscardBackbuffer; |
67 bool usingEglImage; | 68 bool usingEglImage; |
68 bool allowPartialTextureUpdates; | 69 bool allowPartialTextureUpdates; |
69 int maxTextureSize; | 70 int maxTextureSize; |
70 }; | 71 }; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 275 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
275 | 276 |
276 static bool s_needsFilterContext; | 277 static bool s_needsFilterContext; |
277 | 278 |
278 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 279 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
279 }; | 280 }; |
280 | 281 |
281 } // namespace cc | 282 } // namespace cc |
282 | 283 |
283 #endif // CC_LAYER_TREE_HOST_H_ | 284 #endif // CC_LAYER_TREE_HOST_H_ |
OLD | NEW |