| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 virtual void MainThreadHasStoppedFlinging() = 0; | 89 virtual void MainThreadHasStoppedFlinging() = 0; |
| 90 | 90 |
| 91 virtual bool CommitRequested() const = 0; | 91 virtual bool CommitRequested() const = 0; |
| 92 virtual bool BeginMainFrameRequested() const = 0; | 92 virtual bool BeginMainFrameRequested() const = 0; |
| 93 | 93 |
| 94 // Must be called before using the proxy. | 94 // Must be called before using the proxy. |
| 95 virtual void Start() = 0; | 95 virtual void Start() = 0; |
| 96 virtual void Stop() = 0; // Must be called before deleting the proxy. | 96 virtual void Stop() = 0; // Must be called before deleting the proxy. |
| 97 | 97 |
| 98 // Forces 3D commands on all contexts to wait for all previous SwapBuffers | |
| 99 // to finish before executing in the GPU process. | |
| 100 virtual void ForceSerializeOnSwapBuffers() = 0; | |
| 101 | |
| 102 virtual bool SupportsImplScrolling() const = 0; | 98 virtual bool SupportsImplScrolling() const = 0; |
| 103 | 99 |
| 104 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0; | 100 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0; |
| 105 | 101 |
| 106 virtual void SetAuthoritativeVSyncInterval( | 102 virtual void SetAuthoritativeVSyncInterval( |
| 107 const base::TimeDelta& interval) = 0; | 103 const base::TimeDelta& interval) = 0; |
| 108 | 104 |
| 109 // Testing hooks | 105 // Testing hooks |
| 110 virtual bool MainFrameWillHappenForTesting() = 0; | 106 virtual bool MainFrameWillHappenForTesting() = 0; |
| 111 | 107 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 151 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
| 156 ~DebugScopedSetMainThreadBlocked() {} | 152 ~DebugScopedSetMainThreadBlocked() {} |
| 157 private: | 153 private: |
| 158 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 154 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
| 159 }; | 155 }; |
| 160 #endif | 156 #endif |
| 161 | 157 |
| 162 } // namespace cc | 158 } // namespace cc |
| 163 | 159 |
| 164 #endif // CC_TREES_PROXY_H_ | 160 #endif // CC_TREES_PROXY_H_ |
| OLD | NEW |