| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 void NotifyInputThrottledUntilCommit() override {} | 51 void NotifyInputThrottledUntilCommit() override {} |
| 52 void SetDeferCommits(bool defer_commits) override; | 52 void SetDeferCommits(bool defer_commits) override; |
| 53 bool CommitRequested() const override; | 53 bool CommitRequested() const override; |
| 54 bool BeginMainFrameRequested() const override; | 54 bool BeginMainFrameRequested() const override; |
| 55 void MainThreadHasStoppedFlinging() override {} | 55 void MainThreadHasStoppedFlinging() override {} |
| 56 void Start( | 56 void Start( |
| 57 std::unique_ptr<BeginFrameSource> external_begin_frame_source) override; | 57 std::unique_ptr<BeginFrameSource> external_begin_frame_source) override; |
| 58 void Stop() override; | 58 void Stop() override; |
| 59 bool SupportsImplScrolling() const override; | 59 bool SupportsImplScrolling() const override; |
| 60 bool MainFrameWillHappenForTesting() override; | 60 bool MainFrameWillHappenForTesting() override; |
| 61 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; | |
| 62 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; | 61 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; |
| 63 void UpdateTopControlsState(TopControlsState constraints, | 62 void UpdateTopControlsState(TopControlsState constraints, |
| 64 TopControlsState current, | 63 TopControlsState current, |
| 65 bool animate) override; | 64 bool animate) override; |
| 66 void SetOutputIsSecure(bool output_is_secure) override; | 65 void SetOutputIsSecure(bool output_is_secure) override; |
| 67 | 66 |
| 68 // SchedulerClient implementation | 67 // SchedulerClient implementation |
| 69 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 68 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
| 70 void DidFinishImplFrame() override; | 69 void DidFinishImplFrame() override; |
| 71 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; | 70 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; |
| 72 DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 71 DrawResult ScheduledActionDrawAndSwapIfPossible() override; |
| 73 DrawResult ScheduledActionDrawAndSwapForced() override; | 72 DrawResult ScheduledActionDrawAndSwapForced() override; |
| 74 void ScheduledActionCommit() override; | 73 void ScheduledActionCommit() override; |
| 75 void ScheduledActionActivateSyncTree() override; | 74 void ScheduledActionActivateSyncTree() override; |
| 76 void ScheduledActionBeginOutputSurfaceCreation() override; | 75 void ScheduledActionBeginOutputSurfaceCreation() override; |
| 77 void ScheduledActionPrepareTiles() override; | 76 void ScheduledActionPrepareTiles() override; |
| 78 void ScheduledActionInvalidateOutputSurface() override; | 77 void ScheduledActionInvalidateOutputSurface() override; |
| 79 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; | |
| 80 void SendBeginMainFrameNotExpectedSoon() override; | 78 void SendBeginMainFrameNotExpectedSoon() override; |
| 81 | 79 |
| 82 // LayerTreeHostImplClient implementation | 80 // LayerTreeHostImplClient implementation |
| 83 void UpdateRendererCapabilitiesOnImplThread() override; | 81 void UpdateRendererCapabilitiesOnImplThread() override; |
| 84 void DidLoseOutputSurfaceOnImplThread() override; | 82 void DidLoseOutputSurfaceOnImplThread() override; |
| 85 void CommitVSyncParameters(base::TimeTicks timebase, | 83 void CommitVSyncParameters(base::TimeTicks timebase, |
| 86 base::TimeDelta interval) override; | 84 base::TimeDelta interval) override; |
| 87 void SetBeginFrameSource(BeginFrameSource* source) override; | 85 void SetBeginFrameSource(BeginFrameSource* source) override; |
| 88 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 86 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; |
| 89 void DidSwapBuffersOnImplThread() override; | 87 void DidSwapBuffersOnImplThread() override; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 private: | 240 private: |
| 243 DebugScopedSetImplThread impl_thread_; | 241 DebugScopedSetImplThread impl_thread_; |
| 244 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 242 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 245 | 243 |
| 246 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 244 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 247 }; | 245 }; |
| 248 | 246 |
| 249 } // namespace cc | 247 } // namespace cc |
| 250 | 248 |
| 251 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 249 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |