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_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_THREAD_PROXY_H_ |
6 #define CC_TREES_THREAD_PROXY_H_ | 6 #define CC_TREES_THREAD_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 bool BeginMainFrameRequested() const override; | 171 bool BeginMainFrameRequested() const override; |
172 void MainThreadHasStoppedFlinging() override; | 172 void MainThreadHasStoppedFlinging() override; |
173 void Start() override; | 173 void Start() override; |
174 void Stop() override; | 174 void Stop() override; |
175 size_t MaxPartialTextureUpdates() const override; | 175 size_t MaxPartialTextureUpdates() const override; |
176 void ForceSerializeOnSwapBuffers() override; | 176 void ForceSerializeOnSwapBuffers() override; |
177 bool SupportsImplScrolling() const override; | 177 bool SupportsImplScrolling() const override; |
178 void SetDebugState(const LayerTreeDebugState& debug_state) override; | 178 void SetDebugState(const LayerTreeDebugState& debug_state) override; |
179 bool MainFrameWillHappenForTesting() override; | 179 bool MainFrameWillHappenForTesting() override; |
180 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; | 180 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; |
| 181 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; |
181 | 182 |
182 // LayerTreeHostImplClient implementation | 183 // LayerTreeHostImplClient implementation |
183 void UpdateRendererCapabilitiesOnImplThread() override; | 184 void UpdateRendererCapabilitiesOnImplThread() override; |
184 void DidLoseOutputSurfaceOnImplThread() override; | 185 void DidLoseOutputSurfaceOnImplThread() override; |
185 void CommitVSyncParameters(base::TimeTicks timebase, | 186 void CommitVSyncParameters(base::TimeTicks timebase, |
186 base::TimeDelta interval) override; | 187 base::TimeDelta interval) override; |
187 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 188 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; |
188 void SetMaxSwapsPendingOnImplThread(int max) override; | 189 void SetMaxSwapsPendingOnImplThread(int max) override; |
189 void DidSwapBuffersOnImplThread() override; | 190 void DidSwapBuffersOnImplThread() override; |
190 void DidSwapBuffersCompleteOnImplThread() override; | 191 void DidSwapBuffersCompleteOnImplThread() override; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 | 303 |
303 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 304 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
304 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 305 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
305 | 306 |
306 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 307 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
307 }; | 308 }; |
308 | 309 |
309 } // namespace cc | 310 } // namespace cc |
310 | 311 |
311 #endif // CC_TREES_THREAD_PROXY_H_ | 312 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |