| 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 "CCAnimationEvents.h" | 8 #include "CCAnimationEvents.h" |
| 9 #include "CCGraphicsContext.h" | 9 #include "CCGraphicsContext.h" |
| 10 #include "CCLayerTreeHostClient.h" | 10 #include "CCLayerTreeHostClient.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class CCLayerChromium; | 28 class CCLayerChromium; |
| 29 class CCLayerTreeHostImpl; | 29 class CCLayerTreeHostImpl; |
| 30 class CCLayerTreeHostImplClient; | 30 class CCLayerTreeHostImplClient; |
| 31 class CCPrioritizedTextureManager; | 31 class CCPrioritizedTextureManager; |
| 32 class CCTextureUpdateQueue; | 32 class CCTextureUpdateQueue; |
| 33 class HeadsUpDisplayLayerChromium; | 33 class HeadsUpDisplayLayerChromium; |
| 34 class Region; | 34 class Region; |
| 35 struct CCScrollAndScaleSet; | 35 struct CCScrollAndScaleSet; |
| 36 | 36 |
| 37 struct CCLayerTreeSettings { | 37 struct CCLayerTreeSettings { |
| 38 CCLayerTreeSettings() | 38 CCLayerTreeSettings(); |
| 39 : acceleratePainting(false) | 39 ~CCLayerTreeSettings(); |
| 40 , showFPSCounter(false) | |
| 41 , showPlatformLayerTree(false) | |
| 42 , showPaintRects(false) | |
| 43 , showPropertyChangedRects(false) | |
| 44 , showSurfaceDamageRects(false) | |
| 45 , showScreenSpaceRects(false) | |
| 46 , showReplicaScreenSpaceRects(false) | |
| 47 , showOccludingRects(false) | |
| 48 , renderVSyncEnabled(true) | |
| 49 , refreshRate(0) | |
| 50 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) | |
| 51 , defaultTileSize(IntSize(256, 256)) | |
| 52 , maxUntiledLayerSize(IntSize(512, 512)) | |
| 53 , minimumOcclusionTrackingSize(IntSize(160, 160)) | |
| 54 { } | |
| 55 | 40 |
| 56 bool acceleratePainting; | 41 bool acceleratePainting; |
| 57 bool showFPSCounter; | 42 bool showFPSCounter; |
| 58 bool showPlatformLayerTree; | 43 bool showPlatformLayerTree; |
| 59 bool showPaintRects; | 44 bool showPaintRects; |
| 60 bool showPropertyChangedRects; | 45 bool showPropertyChangedRects; |
| 61 bool showSurfaceDamageRects; | 46 bool showSurfaceDamageRects; |
| 62 bool showScreenSpaceRects; | 47 bool showScreenSpaceRects; |
| 63 bool showReplicaScreenSpaceRects; | 48 bool showReplicaScreenSpaceRects; |
| 64 bool showOccludingRects; | 49 bool showOccludingRects; |
| 65 bool renderVSyncEnabled; | 50 bool renderVSyncEnabled; |
| 66 double refreshRate; | 51 double refreshRate; |
| 67 size_t maxPartialTextureUpdates; | 52 size_t maxPartialTextureUpdates; |
| 68 IntSize defaultTileSize; | 53 IntSize defaultTileSize; |
| 69 IntSize maxUntiledLayerSize; | 54 IntSize maxUntiledLayerSize; |
| 70 IntSize minimumOcclusionTrackingSize; | 55 IntSize minimumOcclusionTrackingSize; |
| 71 | 56 |
| 72 bool showDebugInfo() const { return showPlatformLayerTree || showFPSCounter
|| showDebugRects(); } | 57 bool showDebugInfo() const { return showPlatformLayerTree || showFPSCounter
|| showDebugRects(); } |
| 73 bool showDebugRects() const { return showPaintRects || showPropertyChangedRe
cts || showSurfaceDamageRects || showScreenSpaceRects || showReplicaScreenSpaceR
ects || showOccludingRects; } | 58 bool showDebugRects() const { return showPaintRects || showPropertyChangedRe
cts || showSurfaceDamageRects || showScreenSpaceRects || showReplicaScreenSpaceR
ects || showOccludingRects; } |
| 74 }; | 59 }; |
| 75 | 60 |
| 76 // Provides information on an Impl's rendering capabilities back to the CCLayerT
reeHost | 61 // Provides information on an Impl's rendering capabilities back to the CCLayerT
reeHost |
| 77 struct RendererCapabilities { | 62 struct RendererCapabilities { |
| 78 RendererCapabilities() | 63 RendererCapabilities(); |
| 79 : bestTextureFormat(0) | 64 ~RendererCapabilities(); |
| 80 , contextHasCachedFrontBuffer(false) | |
| 81 , usingPartialSwap(false) | |
| 82 , usingAcceleratedPainting(false) | |
| 83 , usingSetVisibility(false) | |
| 84 , usingSwapCompleteCallback(false) | |
| 85 , usingGpuMemoryManager(false) | |
| 86 , usingDiscardFramebuffer(false) | |
| 87 , usingEglImage(false) | |
| 88 , maxTextureSize(0) { } | |
| 89 | 65 |
| 90 GC3Denum bestTextureFormat; | 66 GC3Denum bestTextureFormat; |
| 91 bool contextHasCachedFrontBuffer; | 67 bool contextHasCachedFrontBuffer; |
| 92 bool usingPartialSwap; | 68 bool usingPartialSwap; |
| 93 bool usingAcceleratedPainting; | 69 bool usingAcceleratedPainting; |
| 94 bool usingSetVisibility; | 70 bool usingSetVisibility; |
| 95 bool usingSwapCompleteCallback; | 71 bool usingSwapCompleteCallback; |
| 96 bool usingGpuMemoryManager; | 72 bool usingGpuMemoryManager; |
| 97 bool usingDiscardFramebuffer; | 73 bool usingDiscardFramebuffer; |
| 98 bool usingEglImage; | 74 bool usingEglImage; |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 | 271 |
| 296 TextureList m_deleteTextureAfterCommitList; | 272 TextureList m_deleteTextureAfterCommitList; |
| 297 size_t m_partialTextureUpdateRequests; | 273 size_t m_partialTextureUpdateRequests; |
| 298 | 274 |
| 299 static bool s_needsFilterContext; | 275 static bool s_needsFilterContext; |
| 300 }; | 276 }; |
| 301 | 277 |
| 302 } | 278 } |
| 303 | 279 |
| 304 #endif | 280 #endif |
| OLD | NEW |