| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // SchedulerClient implementation | 67 // SchedulerClient implementation |
| 68 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 68 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
| 69 void ScheduledActionSendBeginMainFrame() override; | 69 void ScheduledActionSendBeginMainFrame() override; |
| 70 DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 70 DrawResult ScheduledActionDrawAndSwapIfPossible() override; |
| 71 DrawResult ScheduledActionDrawAndSwapForced() override; | 71 DrawResult ScheduledActionDrawAndSwapForced() override; |
| 72 void ScheduledActionCommit() override; | 72 void ScheduledActionCommit() override; |
| 73 void ScheduledActionAnimate() override; | 73 void ScheduledActionAnimate() override; |
| 74 void ScheduledActionActivateSyncTree() override; | 74 void ScheduledActionActivateSyncTree() override; |
| 75 void ScheduledActionBeginOutputSurfaceCreation() override; | 75 void ScheduledActionBeginOutputSurfaceCreation() override; |
| 76 void ScheduledActionPrepareTiles() override; | 76 void ScheduledActionPrepareTiles() override; |
| 77 void ScheduledActionInvalidateOutputSurface() override; | |
| 78 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; | 77 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; |
| 79 base::TimeDelta DrawDurationEstimate() override; | 78 base::TimeDelta DrawDurationEstimate() override; |
| 80 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; | 79 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; |
| 81 base::TimeDelta CommitToActivateDurationEstimate() override; | 80 base::TimeDelta CommitToActivateDurationEstimate() override; |
| 82 void DidBeginImplFrameDeadline() override; | 81 void DidBeginImplFrameDeadline() override; |
| 83 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; | 82 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; |
| 84 void SendBeginMainFrameNotExpectedSoon() override; | 83 void SendBeginMainFrameNotExpectedSoon() override; |
| 85 | 84 |
| 86 // LayerTreeHostImplClient implementation | 85 // LayerTreeHostImplClient implementation |
| 87 void UpdateRendererCapabilitiesOnImplThread() override; | 86 void UpdateRendererCapabilitiesOnImplThread() override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 104 scoped_ptr<AnimationEventsVector> events) override; | 103 scoped_ptr<AnimationEventsVector> events) override; |
| 105 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, | 104 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, |
| 106 int priority_cutoff) override; | 105 int priority_cutoff) override; |
| 107 bool IsInsideDraw() override; | 106 bool IsInsideDraw() override; |
| 108 void RenewTreePriority() override {} | 107 void RenewTreePriority() override {} |
| 109 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, | 108 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, |
| 110 base::TimeDelta delay) override {} | 109 base::TimeDelta delay) override {} |
| 111 void DidActivateSyncTree() override; | 110 void DidActivateSyncTree() override; |
| 112 void DidPrepareTiles() override; | 111 void DidPrepareTiles() override; |
| 113 void DidCompletePageScaleAnimationOnImplThread() override; | 112 void DidCompletePageScaleAnimationOnImplThread() override; |
| 114 void OnDrawForOutputSurface() override; | |
| 115 | |
| 116 void SetDebugState(const LayerTreeDebugState& debug_state) override {} | 113 void SetDebugState(const LayerTreeDebugState& debug_state) override {} |
| 117 | 114 |
| 118 void RequestNewOutputSurface(); | 115 void RequestNewOutputSurface(); |
| 119 | 116 |
| 120 // Called by the legacy path where RenderWidget does the scheduling. | 117 // Called by the legacy path where RenderWidget does the scheduling. |
| 121 void CompositeImmediately(base::TimeTicks frame_begin_time); | 118 void CompositeImmediately(base::TimeTicks frame_begin_time); |
| 122 | 119 |
| 123 protected: | 120 protected: |
| 124 SingleThreadProxy( | 121 SingleThreadProxy( |
| 125 LayerTreeHost* layer_tree_host, | 122 LayerTreeHost* layer_tree_host, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 private: | 232 private: |
| 236 DebugScopedSetImplThread impl_thread_; | 233 DebugScopedSetImplThread impl_thread_; |
| 237 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 234 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 238 | 235 |
| 239 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 236 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 240 }; | 237 }; |
| 241 | 238 |
| 242 } // namespace cc | 239 } // namespace cc |
| 243 | 240 |
| 244 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 241 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |