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/hash_tables.h" | 9 #include "base/hash_tables.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 bool showDebugInfo() const { return showPlatformLayerTree || showFPSCounter
|| showDebugRects(); } | 69 bool showDebugInfo() const { return showPlatformLayerTree || showFPSCounter
|| showDebugRects(); } |
70 bool showDebugRects() const { return showPaintRects || showPropertyChangedRe
cts || showSurfaceDamageRects || showScreenSpaceRects || showReplicaScreenSpaceR
ects || showOccludingRects; } | 70 bool showDebugRects() const { return showPaintRects || showPropertyChangedRe
cts || showSurfaceDamageRects || showScreenSpaceRects || showReplicaScreenSpaceR
ects || showOccludingRects; } |
71 }; | 71 }; |
72 | 72 |
73 // Provides information on an Impl's rendering capabilities back to the CCLayerT
reeHost | 73 // Provides information on an Impl's rendering capabilities back to the CCLayerT
reeHost |
74 struct RendererCapabilities { | 74 struct RendererCapabilities { |
75 RendererCapabilities(); | 75 RendererCapabilities(); |
76 ~RendererCapabilities(); | 76 ~RendererCapabilities(); |
77 | 77 |
78 GC3Denum bestTextureFormat; | 78 GLenum bestTextureFormat; |
79 bool contextHasCachedFrontBuffer; | 79 bool contextHasCachedFrontBuffer; |
80 bool usingPartialSwap; | 80 bool usingPartialSwap; |
81 bool usingAcceleratedPainting; | 81 bool usingAcceleratedPainting; |
82 bool usingSetVisibility; | 82 bool usingSetVisibility; |
83 bool usingSwapCompleteCallback; | 83 bool usingSwapCompleteCallback; |
84 bool usingGpuMemoryManager; | 84 bool usingGpuMemoryManager; |
85 bool usingDiscardFramebuffer; | 85 bool usingDiscardFramebuffer; |
86 bool usingEglImage; | 86 bool usingEglImage; |
87 int maxTextureSize; | 87 int maxTextureSize; |
88 }; | 88 }; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 size_t m_partialTextureUpdateRequests; | 272 size_t m_partialTextureUpdateRequests; |
273 | 273 |
274 static bool s_needsFilterContext; | 274 static bool s_needsFilterContext; |
275 | 275 |
276 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHost); | 276 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHost); |
277 }; | 277 }; |
278 | 278 |
279 } // namespace cc | 279 } // namespace cc |
280 | 280 |
281 #endif | 281 #endif |
OLD | NEW |