| 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> | 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/graphics_context.h" | 18 #include "cc/graphics_context.h" |
| 18 #include "cc/layer_tree_host_client.h" | 19 #include "cc/layer_tree_host_client.h" |
| 19 #include "cc/layer_tree_host_common.h" | 20 #include "cc/layer_tree_host_common.h" |
| 20 #include "cc/occlusion_tracker.h" | 21 #include "cc/occlusion_tracker.h" |
| 21 #include "cc/prioritized_texture_manager.h" | 22 #include "cc/prioritized_texture_manager.h" |
| 22 #include "cc/proxy.h" | 23 #include "cc/proxy.h" |
| 23 #include "cc/rate_limiter.h" | 24 #include "cc/rate_limiter.h" |
| 24 #include "cc/rendering_stats.h" | 25 #include "cc/rendering_stats.h" |
| 25 #include "cc/scoped_ptr_vector.h" | 26 #include "cc/scoped_ptr_vector.h" |
| 26 #include "third_party/skia/include/core/SkColor.h" | 27 #include "third_party/skia/include/core/SkColor.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 42 class FontAtlas; | 43 class FontAtlas; |
| 43 class Layer; | 44 class Layer; |
| 44 class LayerTreeHostImpl; | 45 class LayerTreeHostImpl; |
| 45 class LayerTreeHostImplClient; | 46 class LayerTreeHostImplClient; |
| 46 class PrioritizedTextureManager; | 47 class PrioritizedTextureManager; |
| 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 LayerTreeSettings { | 53 struct CC_EXPORT LayerTreeSettings { |
| 53 LayerTreeSettings(); | 54 LayerTreeSettings(); |
| 54 ~LayerTreeSettings(); | 55 ~LayerTreeSettings(); |
| 55 | 56 |
| 56 bool acceleratePainting; | 57 bool acceleratePainting; |
| 57 bool showFPSCounter; | 58 bool showFPSCounter; |
| 58 bool showPlatformLayerTree; | 59 bool showPlatformLayerTree; |
| 59 bool showPaintRects; | 60 bool showPaintRects; |
| 60 bool showPropertyChangedRects; | 61 bool showPropertyChangedRects; |
| 61 bool showSurfaceDamageRects; | 62 bool showSurfaceDamageRects; |
| 62 bool showScreenSpaceRects; | 63 bool showScreenSpaceRects; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 83 bool usingPartialSwap; | 84 bool usingPartialSwap; |
| 84 bool usingAcceleratedPainting; | 85 bool usingAcceleratedPainting; |
| 85 bool usingSetVisibility; | 86 bool usingSetVisibility; |
| 86 bool usingSwapCompleteCallback; | 87 bool usingSwapCompleteCallback; |
| 87 bool usingGpuMemoryManager; | 88 bool usingGpuMemoryManager; |
| 88 bool usingDiscardFramebuffer; | 89 bool usingDiscardFramebuffer; |
| 89 bool usingEglImage; | 90 bool usingEglImage; |
| 90 int maxTextureSize; | 91 int maxTextureSize; |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 class LayerTreeHost : public RateLimiterClient { | 94 class CC_EXPORT LayerTreeHost : public RateLimiterClient { |
| 94 public: | 95 public: |
| 95 static scoped_ptr<LayerTreeHost> create(LayerTreeHostClient*, const LayerTre
eSettings&); | 96 static scoped_ptr<LayerTreeHost> create(LayerTreeHostClient*, const LayerTre
eSettings&); |
| 96 virtual ~LayerTreeHost(); | 97 virtual ~LayerTreeHost(); |
| 97 | 98 |
| 98 void setSurfaceReady(); | 99 void setSurfaceReady(); |
| 99 | 100 |
| 100 // Returns true if any LayerTreeHost is alive. | 101 // Returns true if any LayerTreeHost is alive. |
| 101 static bool anyLayerTreeHostInstanceExists(); | 102 static bool anyLayerTreeHostInstanceExists(); |
| 102 | 103 |
| 103 static bool needsFilterContext() { return s_needsFilterContext; } | 104 static bool needsFilterContext() { return s_needsFilterContext; } |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 size_t m_partialTextureUpdateRequests; | 283 size_t m_partialTextureUpdateRequests; |
| 283 | 284 |
| 284 static bool s_needsFilterContext; | 285 static bool s_needsFilterContext; |
| 285 | 286 |
| 286 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 287 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 287 }; | 288 }; |
| 288 | 289 |
| 289 } // namespace cc | 290 } // namespace cc |
| 290 | 291 |
| 291 #endif | 292 #endif |
| OLD | NEW |