| 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" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/own_ptr_vector.h" | 10 #include "cc/own_ptr_vector.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 bool showDebugInfo() const { return showPlatformLayerTree || showFPSCounter
|| showDebugRects(); } | 60 bool showDebugInfo() const { return showPlatformLayerTree || showFPSCounter
|| showDebugRects(); } |
| 61 bool showDebugRects() const { return showPaintRects || showPropertyChangedRe
cts || showSurfaceDamageRects || showScreenSpaceRects || showReplicaScreenSpaceR
ects || showOccludingRects; } | 61 bool showDebugRects() const { return showPaintRects || showPropertyChangedRe
cts || showSurfaceDamageRects || showScreenSpaceRects || showReplicaScreenSpaceR
ects || showOccludingRects; } |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 // Provides information on an Impl's rendering capabilities back to the CCLayerT
reeHost | 64 // Provides information on an Impl's rendering capabilities back to the CCLayerT
reeHost |
| 65 struct RendererCapabilities { | 65 struct RendererCapabilities { |
| 66 RendererCapabilities(); | 66 RendererCapabilities(); |
| 67 ~RendererCapabilities(); | 67 ~RendererCapabilities(); |
| 68 | 68 |
| 69 GC3Denum bestTextureFormat; | 69 GC3Denum bestTextureFormat; |
| 70 bool contextHasCachedFrontBuffer; | |
| 71 bool usingPartialSwap; | 70 bool usingPartialSwap; |
| 72 bool usingAcceleratedPainting; | 71 bool usingAcceleratedPainting; |
| 73 bool usingSetVisibility; | 72 bool usingSetVisibility; |
| 74 bool usingSwapCompleteCallback; | 73 bool usingSwapCompleteCallback; |
| 75 bool usingGpuMemoryManager; | 74 bool usingGpuMemoryManager; |
| 76 bool usingDiscardFramebuffer; | 75 bool usingDiscardFramebuffer; |
| 77 bool usingEglImage; | 76 bool usingEglImage; |
| 77 bool allowPartialTextureUpdates; |
| 78 int maxTextureSize; | 78 int maxTextureSize; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 class CCLayerTreeHost : public RateLimiterClient { | 81 class CCLayerTreeHost : public RateLimiterClient { |
| 82 public: | 82 public: |
| 83 static scoped_ptr<CCLayerTreeHost> create(CCLayerTreeHostClient*, const CCLa
yerTreeSettings&); | 83 static scoped_ptr<CCLayerTreeHost> create(CCLayerTreeHostClient*, const CCLa
yerTreeSettings&); |
| 84 virtual ~CCLayerTreeHost(); | 84 virtual ~CCLayerTreeHost(); |
| 85 | 85 |
| 86 void setSurfaceReady(); | 86 void setSurfaceReady(); |
| 87 | 87 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 size_t m_partialTextureUpdateRequests; | 279 size_t m_partialTextureUpdateRequests; |
| 280 | 280 |
| 281 static bool s_needsFilterContext; | 281 static bool s_needsFilterContext; |
| 282 | 282 |
| 283 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHost); | 283 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHost); |
| 284 }; | 284 }; |
| 285 | 285 |
| 286 } // namespace cc | 286 } // namespace cc |
| 287 | 287 |
| 288 #endif | 288 #endif |
| OLD | NEW |