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 CC_TREES_PROXY_H_ | 5 #ifndef CC_TREES_PROXY_H_ |
6 #define CC_TREES_PROXY_H_ | 6 #define CC_TREES_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 virtual bool BeginMainFrameRequested() const = 0; | 90 virtual bool BeginMainFrameRequested() const = 0; |
91 | 91 |
92 // Must be called before using the proxy. | 92 // Must be called before using the proxy. |
93 virtual void Start() = 0; | 93 virtual void Start() = 0; |
94 virtual void Stop() = 0; // Must be called before deleting the proxy. | 94 virtual void Stop() = 0; // Must be called before deleting the proxy. |
95 | 95 |
96 // Forces 3D commands on all contexts to wait for all previous SwapBuffers | 96 // Forces 3D commands on all contexts to wait for all previous SwapBuffers |
97 // to finish before executing in the GPU process. | 97 // to finish before executing in the GPU process. |
98 virtual void ForceSerializeOnSwapBuffers() = 0; | 98 virtual void ForceSerializeOnSwapBuffers() = 0; |
99 | 99 |
100 // Maximum number of sub-region texture updates supported for each commit. | |
101 virtual size_t MaxPartialTextureUpdates() const = 0; | |
102 | |
103 virtual bool SupportsImplScrolling() const = 0; | 100 virtual bool SupportsImplScrolling() const = 0; |
104 | 101 |
105 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; | 102 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; |
106 | 103 |
107 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0; | 104 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0; |
108 | 105 |
109 virtual void SetAuthoritativeVSyncInterval( | 106 virtual void SetAuthoritativeVSyncInterval( |
110 const base::TimeDelta& interval) = 0; | 107 const base::TimeDelta& interval) = 0; |
111 | 108 |
112 // Testing hooks | 109 // Testing hooks |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 155 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
159 ~DebugScopedSetMainThreadBlocked() {} | 156 ~DebugScopedSetMainThreadBlocked() {} |
160 private: | 157 private: |
161 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 158 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
162 }; | 159 }; |
163 #endif | 160 #endif |
164 | 161 |
165 } // namespace cc | 162 } // namespace cc |
166 | 163 |
167 #endif // CC_TREES_PROXY_H_ | 164 #endif // CC_TREES_PROXY_H_ |
OLD | NEW |