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_SINGLE_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_ |
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ | 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 bool CommitRequested() const override; | 55 bool CommitRequested() const override; |
56 bool BeginMainFrameRequested() const override; | 56 bool BeginMainFrameRequested() const override; |
57 void MainThreadHasStoppedFlinging() override {} | 57 void MainThreadHasStoppedFlinging() override {} |
58 void Start() override; | 58 void Start() override; |
59 void Stop() override; | 59 void Stop() override; |
60 size_t MaxPartialTextureUpdates() const override; | 60 size_t MaxPartialTextureUpdates() const override; |
61 void ForceSerializeOnSwapBuffers() override; | 61 void ForceSerializeOnSwapBuffers() override; |
62 bool SupportsImplScrolling() const override; | 62 bool SupportsImplScrolling() const override; |
63 bool MainFrameWillHappenForTesting() override; | 63 bool MainFrameWillHappenForTesting() override; |
64 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; | 64 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; |
| 65 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; |
65 | 66 |
66 // SchedulerClient implementation | 67 // SchedulerClient implementation |
67 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 68 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
68 void ScheduledActionSendBeginMainFrame() override; | 69 void ScheduledActionSendBeginMainFrame() override; |
69 DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 70 DrawResult ScheduledActionDrawAndSwapIfPossible() override; |
70 DrawResult ScheduledActionDrawAndSwapForced() override; | 71 DrawResult ScheduledActionDrawAndSwapForced() override; |
71 void ScheduledActionCommit() override; | 72 void ScheduledActionCommit() override; |
72 void ScheduledActionAnimate() override; | 73 void ScheduledActionAnimate() override; |
73 void ScheduledActionActivateSyncTree() override; | 74 void ScheduledActionActivateSyncTree() override; |
74 void ScheduledActionBeginOutputSurfaceCreation() override; | 75 void ScheduledActionBeginOutputSurfaceCreation() override; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 private: | 232 private: |
232 DebugScopedSetImplThread impl_thread_; | 233 DebugScopedSetImplThread impl_thread_; |
233 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 234 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
234 | 235 |
235 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 236 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
236 }; | 237 }; |
237 | 238 |
238 } // namespace cc | 239 } // namespace cc |
239 | 240 |
240 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 241 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |