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/occlusion_tracker.h" | 21 #include "cc/occlusion_tracker.h" |
21 #include "cc/output_surface.h" | 22 #include "cc/output_surface.h" |
22 #include "cc/prioritized_resource_manager.h" | 23 #include "cc/prioritized_resource_manager.h" |
23 #include "cc/proxy.h" | 24 #include "cc/proxy.h" |
24 #include "cc/rate_limiter.h" | 25 #include "cc/rate_limiter.h" |
25 #include "cc/rendering_stats.h" | 26 #include "cc/rendering_stats.h" |
26 #include "cc/scoped_ptr_vector.h" | 27 #include "cc/scoped_ptr_vector.h" |
27 #include "third_party/skia/include/core/SkColor.h" | 28 #include "third_party/skia/include/core/SkColor.h" |
28 #include "ui/gfx/rect.h" | 29 #include "ui/gfx/rect.h" |
29 | 30 |
(...skipping 12 matching lines...) Expand all Loading... |
42 | 43 |
43 class Layer; | 44 class Layer; |
44 class LayerTreeHostImpl; | 45 class LayerTreeHostImpl; |
45 class LayerTreeHostImplClient; | 46 class LayerTreeHostImplClient; |
46 class PrioritizedResourceManager; | 47 class PrioritizedResourceManager; |
47 class ResourceUpdateQueue; | 48 class ResourceUpdateQueue; |
48 class HeadsUpDisplayLayer; | 49 class HeadsUpDisplayLayer; |
49 class Region; | 50 class Region; |
50 struct ScrollAndScaleSet; | 51 struct ScrollAndScaleSet; |
51 | 52 |
52 struct CC_EXPORT LayerTreeDebugState { | |
53 LayerTreeDebugState(); | |
54 ~LayerTreeDebugState(); | |
55 | |
56 bool showFPSCounter; | |
57 bool showPlatformLayerTree; | |
58 bool showDebugBorders; | |
59 | |
60 bool showPaintRects; | |
61 bool showPropertyChangedRects; | |
62 bool showSurfaceDamageRects; | |
63 bool showScreenSpaceRects; | |
64 bool showReplicaScreenSpaceRects; | |
65 bool showOccludingRects; | |
66 bool showNonOccludingRects; | |
67 | |
68 bool showHudInfo() const; | |
69 bool showHudRects() const; | |
70 bool hudNeedsFont() const; | |
71 | |
72 static bool equal(const LayerTreeDebugState& a, const LayerTreeDebugState& b
); | |
73 static LayerTreeDebugState unite(const LayerTreeDebugState& a, const LayerTr
eeDebugState& b); | |
74 }; | |
75 | |
76 struct CC_EXPORT LayerTreeSettings { | |
77 LayerTreeSettings(); | |
78 ~LayerTreeSettings(); | |
79 | |
80 bool acceleratePainting; | |
81 bool implSidePainting; | |
82 bool renderVSyncEnabled; | |
83 bool perTilePaintingEnabled; | |
84 bool partialSwapEnabled; | |
85 bool acceleratedAnimationEnabled; | |
86 bool pageScalePinchZoomEnabled; | |
87 bool backgroundColorInsteadOfCheckerboard; | |
88 bool showOverdrawInTracing; | |
89 double refreshRate; | |
90 size_t maxPartialTextureUpdates; | |
91 size_t numRasterThreads; | |
92 gfx::Size defaultTileSize; | |
93 gfx::Size maxUntiledLayerSize; | |
94 gfx::Size minimumOcclusionTrackingSize; | |
95 | |
96 LayerTreeDebugState initialDebugState; | |
97 }; | |
98 | 53 |
99 // Provides information on an Impl's rendering capabilities back to the LayerTre
eHost | 54 // Provides information on an Impl's rendering capabilities back to the LayerTre
eHost |
100 struct CC_EXPORT RendererCapabilities { | 55 struct CC_EXPORT RendererCapabilities { |
101 RendererCapabilities(); | 56 RendererCapabilities(); |
102 ~RendererCapabilities(); | 57 ~RendererCapabilities(); |
103 | 58 |
104 GLenum bestTextureFormat; | 59 GLenum bestTextureFormat; |
105 bool usingPartialSwap; | 60 bool usingPartialSwap; |
106 bool usingAcceleratedPainting; | 61 bool usingAcceleratedPainting; |
107 bool usingSetVisibility; | 62 bool usingSetVisibility; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 size_t m_partialTextureUpdateRequests; | 272 size_t m_partialTextureUpdateRequests; |
318 | 273 |
319 static bool s_needsFilterContext; | 274 static bool s_needsFilterContext; |
320 | 275 |
321 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 276 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
322 }; | 277 }; |
323 | 278 |
324 } // namespace cc | 279 } // namespace cc |
325 | 280 |
326 #endif // CC_LAYER_TREE_HOST_H_ | 281 #endif // CC_LAYER_TREE_HOST_H_ |
OLD | NEW |