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 "IntRect.h" | 8 #include "IntRect.h" |
9 #include <public/WebCompositorOutputSurface.h> | 9 #include <public/WebCompositorOutputSurface.h> |
10 #include <wtf/Noncopyable.h> | 10 #include <wtf/Noncopyable.h> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 virtual bool commitRequested() const = 0; | 71 virtual bool commitRequested() const = 0; |
72 | 72 |
73 virtual void start() = 0; // Must be called before using the proxy. | 73 virtual void start() = 0; // Must be called before using the proxy. |
74 virtual void stop() = 0; // Must be called before deleting the proxy. | 74 virtual void stop() = 0; // Must be called before deleting the proxy. |
75 | 75 |
76 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t
o finish before executing in the GPU | 76 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t
o finish before executing in the GPU |
77 // process. | 77 // process. |
78 virtual void forceSerializeOnSwapBuffers() = 0; | 78 virtual void forceSerializeOnSwapBuffers() = 0; |
79 | 79 |
80 // Maximum number of sub-region texture updates supported for each commit. | |
81 virtual size_t maxPartialTextureUpdates() const = 0; | |
82 | |
83 virtual void acquireLayerTextures() = 0; | 80 virtual void acquireLayerTextures() = 0; |
84 | 81 |
85 // Debug hooks | 82 // Debug hooks |
86 #ifndef NDEBUG | 83 #ifndef NDEBUG |
87 static bool isMainThread(); | 84 static bool isMainThread(); |
88 static bool isImplThread(); | 85 static bool isImplThread(); |
89 static bool isMainThreadBlocked(); | 86 static bool isMainThreadBlocked(); |
90 static void setMainThreadBlocked(bool); | 87 static void setMainThreadBlocked(bool); |
91 #endif | 88 #endif |
92 | 89 |
(...skipping 24 matching lines...) Expand all Loading... |
117 #if !ASSERT_DISABLED | 114 #if !ASSERT_DISABLED |
118 ASSERT(CCProxy::isMainThreadBlocked()); | 115 ASSERT(CCProxy::isMainThreadBlocked()); |
119 CCProxy::setMainThreadBlocked(false); | 116 CCProxy::setMainThreadBlocked(false); |
120 #endif | 117 #endif |
121 } | 118 } |
122 }; | 119 }; |
123 | 120 |
124 } | 121 } |
125 | 122 |
126 #endif | 123 #endif |
OLD | NEW |