| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 bool CommitRequested() const override; | 52 bool CommitRequested() const override; |
| 53 bool BeginMainFrameRequested() const override; | 53 bool BeginMainFrameRequested() const override; |
| 54 void MainThreadHasStoppedFlinging() override {} | 54 void MainThreadHasStoppedFlinging() override {} |
| 55 void Start() override; | 55 void Start() override; |
| 56 void Stop() override; | 56 void Stop() override; |
| 57 size_t MaxPartialTextureUpdates() const override; | 57 size_t MaxPartialTextureUpdates() const override; |
| 58 void ForceSerializeOnSwapBuffers() override; | 58 void ForceSerializeOnSwapBuffers() override; |
| 59 bool SupportsImplScrolling() const override; | 59 bool SupportsImplScrolling() const override; |
| 60 void AsValueInto(base::debug::TracedValue* state) const override; | 60 void AsValueInto(base::debug::TracedValue* state) const override; |
| 61 bool MainFrameWillHappenForTesting() override; | 61 bool MainFrameWillHappenForTesting() override; |
| 62 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; |
| 62 | 63 |
| 63 // SchedulerClient implementation | 64 // SchedulerClient implementation |
| 64 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 65 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
| 65 void ScheduledActionSendBeginMainFrame() override; | 66 void ScheduledActionSendBeginMainFrame() override; |
| 66 DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 67 DrawResult ScheduledActionDrawAndSwapIfPossible() override; |
| 67 DrawResult ScheduledActionDrawAndSwapForced() override; | 68 DrawResult ScheduledActionDrawAndSwapForced() override; |
| 68 void ScheduledActionCommit() override; | 69 void ScheduledActionCommit() override; |
| 69 void ScheduledActionAnimate() override; | 70 void ScheduledActionAnimate() override; |
| 70 void ScheduledActionUpdateVisibleTiles() override; | 71 void ScheduledActionUpdateVisibleTiles() override; |
| 71 void ScheduledActionActivateSyncTree() override; | 72 void ScheduledActionActivateSyncTree() override; |
| 72 void ScheduledActionBeginOutputSurfaceCreation() override; | 73 void ScheduledActionBeginOutputSurfaceCreation() override; |
| 73 void ScheduledActionManageTiles() override; | 74 void ScheduledActionManageTiles() override; |
| 74 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; | 75 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; |
| 75 base::TimeDelta DrawDurationEstimate() override; | 76 base::TimeDelta DrawDurationEstimate() override; |
| 76 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; | 77 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; |
| 77 base::TimeDelta CommitToActivateDurationEstimate() override; | 78 base::TimeDelta CommitToActivateDurationEstimate() override; |
| 78 void DidBeginImplFrameDeadline() override; | 79 void DidBeginImplFrameDeadline() override; |
| 80 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; |
| 79 | 81 |
| 80 // LayerTreeHostImplClient implementation | 82 // LayerTreeHostImplClient implementation |
| 81 void UpdateRendererCapabilitiesOnImplThread() override; | 83 void UpdateRendererCapabilitiesOnImplThread() override; |
| 82 void DidLoseOutputSurfaceOnImplThread() override; | 84 void DidLoseOutputSurfaceOnImplThread() override; |
| 83 void CommitVSyncParameters(base::TimeTicks timebase, | 85 void CommitVSyncParameters(base::TimeTicks timebase, |
| 84 base::TimeDelta interval) override {} | 86 base::TimeDelta interval) override {} |
| 85 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} | 87 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} |
| 86 void SetMaxSwapsPendingOnImplThread(int max) override {} | 88 void SetMaxSwapsPendingOnImplThread(int max) override {} |
| 87 void DidSwapBuffersOnImplThread() override; | 89 void DidSwapBuffersOnImplThread() override; |
| 88 void DidSwapBuffersCompleteOnImplThread() override; | 90 void DidSwapBuffersCompleteOnImplThread() override; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 private: | 229 private: |
| 228 DebugScopedSetImplThread impl_thread_; | 230 DebugScopedSetImplThread impl_thread_; |
| 229 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 231 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 230 | 232 |
| 231 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 233 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 232 }; | 234 }; |
| 233 | 235 |
| 234 } // namespace cc | 236 } // namespace cc |
| 235 | 237 |
| 236 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 238 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |