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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 virtual bool SupportsImplScrolling() const = 0; | 100 virtual bool SupportsImplScrolling() const = 0; |
101 | 101 |
102 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; | |
103 | |
104 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0; | 102 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0; |
105 | 103 |
106 virtual void SetAuthoritativeVSyncInterval( | 104 virtual void SetAuthoritativeVSyncInterval( |
107 const base::TimeDelta& interval) = 0; | 105 const base::TimeDelta& interval) = 0; |
108 | 106 |
109 // Testing hooks | 107 // Testing hooks |
110 virtual bool MainFrameWillHappenForTesting() = 0; | 108 virtual bool MainFrameWillHappenForTesting() = 0; |
111 | 109 |
112 BlockingTaskRunner* blocking_main_thread_task_runner() const { | 110 BlockingTaskRunner* blocking_main_thread_task_runner() const { |
113 return blocking_main_thread_task_runner_.get(); | 111 return blocking_main_thread_task_runner_.get(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 153 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
156 ~DebugScopedSetMainThreadBlocked() {} | 154 ~DebugScopedSetMainThreadBlocked() {} |
157 private: | 155 private: |
158 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 156 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
159 }; | 157 }; |
160 #endif | 158 #endif |
161 | 159 |
162 } // namespace cc | 160 } // namespace cc |
163 | 161 |
164 #endif // CC_TREES_PROXY_H_ | 162 #endif // CC_TREES_PROXY_H_ |
OLD | NEW |