| 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" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 bool usingAcceleratedPainting; | 65 bool usingAcceleratedPainting; |
| 66 bool usingSetVisibility; | 66 bool usingSetVisibility; |
| 67 bool usingSwapCompleteCallback; | 67 bool usingSwapCompleteCallback; |
| 68 bool usingGpuMemoryManager; | 68 bool usingGpuMemoryManager; |
| 69 bool usingDiscardBackbuffer; | 69 bool usingDiscardBackbuffer; |
| 70 bool usingEglImage; | 70 bool usingEglImage; |
| 71 bool allowPartialTextureUpdates; | 71 bool allowPartialTextureUpdates; |
| 72 int maxTextureSize; | 72 int maxTextureSize; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 class CC_EXPORT LayerTreeHost : public RateLimiterClient { | 75 class CC_EXPORT LayerTreeHost : public NON_EXPORTED_BASE(RateLimiterClient) { |
| 76 public: | 76 public: |
| 77 static scoped_ptr<LayerTreeHost> create(LayerTreeHostClient*, const LayerTre
eSettings&, scoped_ptr<Thread> implThread); | 77 static scoped_ptr<LayerTreeHost> create(LayerTreeHostClient*, const LayerTre
eSettings&, scoped_ptr<Thread> implThread); |
| 78 virtual ~LayerTreeHost(); | 78 virtual ~LayerTreeHost(); |
| 79 | 79 |
| 80 void setSurfaceReady(); | 80 void setSurfaceReady(); |
| 81 | 81 |
| 82 // Returns true if any LayerTreeHost is alive. | 82 // Returns true if any LayerTreeHost is alive. |
| 83 static bool anyLayerTreeHostInstanceExists(); | 83 static bool anyLayerTreeHostInstanceExists(); |
| 84 | 84 |
| 85 static bool needsFilterContext() { return s_needsFilterContext; } | 85 static bool needsFilterContext() { return s_needsFilterContext; } |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 bool initializeProxy(scoped_ptr<Proxy> proxy); | 211 bool initializeProxy(scoped_ptr<Proxy> proxy); |
| 212 void initializeRenderer(); | 212 void initializeRenderer(); |
| 213 | 213 |
| 214 void update(Layer*, ResourceUpdateQueue&, const OcclusionTracker*); | 214 void update(Layer*, ResourceUpdateQueue&, const OcclusionTracker*); |
| 215 bool paintLayerContents(const LayerList&, ResourceUpdateQueue&); | 215 bool paintLayerContents(const LayerList&, ResourceUpdateQueue&); |
| 216 bool paintMasksForRenderSurface(Layer*, ResourceUpdateQueue&); | 216 bool paintMasksForRenderSurface(Layer*, ResourceUpdateQueue&); |
| 217 | 217 |
| 218 void updateLayers(Layer*, ResourceUpdateQueue&); | 218 void updateLayers(Layer*, ResourceUpdateQueue&); |
| 219 void triggerPrepaint(); | 219 void triggerPrepaint(); |
| 220 | 220 |
| 221 void prioritizeTextures(const LayerList&, OverdrawMetrics&); | 221 void prioritizeTextures(const LayerList&, OverdrawMetrics&); |
| 222 void setPrioritiesForSurfaces(size_t surfaceMemoryBytes); | 222 void setPrioritiesForSurfaces(size_t surfaceMemoryBytes); |
| 223 void setPrioritiesForLayers(const LayerList&); | 223 void setPrioritiesForLayers(const LayerList&); |
| 224 size_t calculateMemoryForRenderSurfaces(const LayerList& updateList); | 224 size_t calculateMemoryForRenderSurfaces(const LayerList& updateList); |
| 225 | 225 |
| 226 void animateLayers(base::TimeTicks monotonicTime); | 226 void animateLayers(base::TimeTicks monotonicTime); |
| 227 bool animateLayersRecursive(Layer* current, base::TimeTicks time); | 227 bool animateLayersRecursive(Layer* current, base::TimeTicks time); |
| 228 void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, base:
:Time wallClockTime); | 228 void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, base:
:Time wallClockTime); |
| 229 | 229 |
| 230 bool m_animating; | 230 bool m_animating; |
| 231 bool m_needsFullTreeSync; | 231 bool m_needsFullTreeSync; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 274 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
| 275 | 275 |
| 276 static bool s_needsFilterContext; | 276 static bool s_needsFilterContext; |
| 277 | 277 |
| 278 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 278 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 279 }; | 279 }; |
| 280 | 280 |
| 281 } // namespace cc | 281 } // namespace cc |
| 282 | 282 |
| 283 #endif // CC_LAYER_TREE_HOST_H_ | 283 #endif // CC_LAYER_TREE_HOST_H_ |
| OLD | NEW |