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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 virtual void MainThreadHasStoppedFlinging() = 0; | 87 virtual void MainThreadHasStoppedFlinging() = 0; |
88 | 88 |
89 virtual bool CommitRequested() const = 0; | 89 virtual bool CommitRequested() const = 0; |
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 | |
97 // to finish before executing in the GPU process. | |
98 virtual void ForceSerializeOnSwapBuffers() = 0; | |
99 | |
100 virtual bool SupportsImplScrolling() const = 0; | 96 virtual bool SupportsImplScrolling() const = 0; |
101 | 97 |
102 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0; | 98 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0; |
103 | 99 |
104 virtual void SetAuthoritativeVSyncInterval( | 100 virtual void SetAuthoritativeVSyncInterval( |
105 const base::TimeDelta& interval) = 0; | 101 const base::TimeDelta& interval) = 0; |
106 | 102 |
107 // Testing hooks | 103 // Testing hooks |
108 virtual bool MainFrameWillHappenForTesting() = 0; | 104 virtual bool MainFrameWillHappenForTesting() = 0; |
109 | 105 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 149 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
154 ~DebugScopedSetMainThreadBlocked() {} | 150 ~DebugScopedSetMainThreadBlocked() {} |
155 private: | 151 private: |
156 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 152 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
157 }; | 153 }; |
158 #endif | 154 #endif |
159 | 155 |
160 } // namespace cc | 156 } // namespace cc |
161 | 157 |
162 #endif // CC_TREES_PROXY_H_ | 158 #endif // CC_TREES_PROXY_H_ |
OLD | NEW |