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 CCProxy_h | 5 #ifndef CCProxy_h |
6 #define CCProxy_h | 6 #define CCProxy_h |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include <public/WebCompositorOutputSurface.h> | 9 #include <public/WebCompositorOutputSurface.h> |
10 | 10 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t
o finish before executing in the GPU | 74 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t
o finish before executing in the GPU |
75 // process. | 75 // process. |
76 virtual void forceSerializeOnSwapBuffers() = 0; | 76 virtual void forceSerializeOnSwapBuffers() = 0; |
77 | 77 |
78 // Maximum number of sub-region texture updates supported for each commit. | 78 // Maximum number of sub-region texture updates supported for each commit. |
79 virtual size_t maxPartialTextureUpdates() const = 0; | 79 virtual size_t maxPartialTextureUpdates() const = 0; |
80 | 80 |
81 virtual void acquireLayerTextures() = 0; | 81 virtual void acquireLayerTextures() = 0; |
82 | 82 |
| 83 virtual void setShowFPSCounter(bool) = 0; |
| 84 |
83 // Debug hooks | 85 // Debug hooks |
84 #ifndef NDEBUG | 86 #ifndef NDEBUG |
85 static bool isMainThread(); | 87 static bool isMainThread(); |
86 static bool isImplThread(); | 88 static bool isImplThread(); |
87 static bool isMainThreadBlocked(); | 89 static bool isMainThreadBlocked(); |
88 static void setMainThreadBlocked(bool); | 90 static void setMainThreadBlocked(bool); |
89 #endif | 91 #endif |
90 | 92 |
91 // Testing hooks | 93 // Testing hooks |
92 virtual void loseContext() = 0; | 94 virtual void loseContext() = 0; |
(...skipping 25 matching lines...) Expand all Loading... |
118 #if !ASSERT_DISABLED | 120 #if !ASSERT_DISABLED |
119 ASSERT(CCProxy::isMainThreadBlocked()); | 121 ASSERT(CCProxy::isMainThreadBlocked()); |
120 CCProxy::setMainThreadBlocked(false); | 122 CCProxy::setMainThreadBlocked(false); |
121 #endif | 123 #endif |
122 } | 124 } |
123 }; | 125 }; |
124 | 126 |
125 } | 127 } |
126 | 128 |
127 #endif | 129 #endif |
OLD | NEW |