| 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 "base/basictypes.h" |
| 9 #include "cc/own_ptr_vector.h" |
| 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" | 14 #include "CCOcclusionTracker.h" |
| 13 #include "CCPrioritizedTextureManager.h" | 15 #include "CCPrioritizedTextureManager.h" |
| 14 #include "CCProxy.h" | 16 #include "CCProxy.h" |
| 15 #include "CCRenderingStats.h" | 17 #include "CCRenderingStats.h" |
| 16 #include "IntRect.h" | 18 #include "IntRect.h" |
| 17 #include "RateLimiter.h" | 19 #include "RateLimiter.h" |
| 18 #include "SkColor.h" | 20 #include "SkColor.h" |
| 19 #include "cc/own_ptr_vector.h" | |
| 20 #include <limits> | 21 #include <limits> |
| 21 #include <wtf/HashMap.h> | 22 #include <wtf/HashMap.h> |
| 22 #include <wtf/OwnPtr.h> | 23 #include <wtf/OwnPtr.h> |
| 23 #include <wtf/PassOwnPtr.h> | 24 #include <wtf/PassOwnPtr.h> |
| 24 #include <wtf/PassRefPtr.h> | 25 #include <wtf/PassRefPtr.h> |
| 25 | 26 |
| 26 namespace cc { | 27 namespace cc { |
| 27 | 28 |
| 28 class CCFontAtlas; | 29 class CCFontAtlas; |
| 29 class CCLayerChromium; | 30 class CCLayerChromium; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 bool usingAcceleratedPainting; | 71 bool usingAcceleratedPainting; |
| 71 bool usingSetVisibility; | 72 bool usingSetVisibility; |
| 72 bool usingSwapCompleteCallback; | 73 bool usingSwapCompleteCallback; |
| 73 bool usingGpuMemoryManager; | 74 bool usingGpuMemoryManager; |
| 74 bool usingDiscardFramebuffer; | 75 bool usingDiscardFramebuffer; |
| 75 bool usingEglImage; | 76 bool usingEglImage; |
| 76 int maxTextureSize; | 77 int maxTextureSize; |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 class CCLayerTreeHost : public RateLimiterClient { | 80 class CCLayerTreeHost : public RateLimiterClient { |
| 80 WTF_MAKE_NONCOPYABLE(CCLayerTreeHost); | |
| 81 public: | 81 public: |
| 82 static PassOwnPtr<CCLayerTreeHost> create(CCLayerTreeHostClient*, const CCLa
yerTreeSettings&); | 82 static PassOwnPtr<CCLayerTreeHost> create(CCLayerTreeHostClient*, const CCLa
yerTreeSettings&); |
| 83 virtual ~CCLayerTreeHost(); | 83 virtual ~CCLayerTreeHost(); |
| 84 | 84 |
| 85 void setSurfaceReady(); | 85 void setSurfaceReady(); |
| 86 | 86 |
| 87 // Returns true if any CCLayerTreeHost is alive. | 87 // Returns true if any CCLayerTreeHost is alive. |
| 88 static bool anyLayerTreeHostInstanceExists(); | 88 static bool anyLayerTreeHostInstanceExists(); |
| 89 | 89 |
| 90 static bool needsFilterContext() { return s_needsFilterContext; } | 90 static bool needsFilterContext() { return s_needsFilterContext; } |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 bool m_triggerIdleUpdates; | 269 bool m_triggerIdleUpdates; |
| 270 | 270 |
| 271 SkColor m_backgroundColor; | 271 SkColor m_backgroundColor; |
| 272 bool m_hasTransparentBackground; | 272 bool m_hasTransparentBackground; |
| 273 | 273 |
| 274 typedef OwnPtrVector<CCPrioritizedTexture> TextureList; | 274 typedef OwnPtrVector<CCPrioritizedTexture> TextureList; |
| 275 TextureList m_deleteTextureAfterCommitList; | 275 TextureList m_deleteTextureAfterCommitList; |
| 276 size_t m_partialTextureUpdateRequests; | 276 size_t m_partialTextureUpdateRequests; |
| 277 | 277 |
| 278 static bool s_needsFilterContext; | 278 static bool s_needsFilterContext; |
| 279 |
| 280 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHost); |
| 279 }; | 281 }; |
| 280 | 282 |
| 281 } | 283 } |
| 282 | 284 |
| 283 #endif | 285 #endif |
| OLD | NEW |