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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
71 void ScheduledActionAnimate() override; | 71 void ScheduledActionAnimate() override; |
72 void ScheduledActionActivateSyncTree() override; | 72 void ScheduledActionActivateSyncTree() override; |
73 void ScheduledActionBeginOutputSurfaceCreation() override; | 73 void ScheduledActionBeginOutputSurfaceCreation() override; |
74 void ScheduledActionPrepareTiles() override; | 74 void ScheduledActionPrepareTiles() override; |
75 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; | 75 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; |
76 base::TimeDelta DrawDurationEstimate() override; | 76 base::TimeDelta DrawDurationEstimate() override; |
77 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; | 77 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; |
78 base::TimeDelta CommitToActivateDurationEstimate() override; | 78 base::TimeDelta CommitToActivateDurationEstimate() override; |
79 void DidBeginImplFrameDeadline() override; | 79 void DidBeginImplFrameDeadline() override; |
80 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; | 80 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; |
81 void SendBeginMainFrameNoLongerRequired() override; | |
81 | 82 |
82 // LayerTreeHostImplClient implementation | 83 // LayerTreeHostImplClient implementation |
83 void UpdateRendererCapabilitiesOnImplThread() override; | 84 void UpdateRendererCapabilitiesOnImplThread() override; |
84 void DidLoseOutputSurfaceOnImplThread() override; | 85 void DidLoseOutputSurfaceOnImplThread() override; |
85 void CommitVSyncParameters(base::TimeTicks timebase, | 86 void CommitVSyncParameters(base::TimeTicks timebase, |
86 base::TimeDelta interval) override; | 87 base::TimeDelta interval) override; |
87 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} | 88 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} |
88 void SetMaxSwapsPendingOnImplThread(int max) override {} | 89 void SetMaxSwapsPendingOnImplThread(int max) override {} |
89 void DidSwapBuffersOnImplThread() override; | 90 void DidSwapBuffersOnImplThread() override; |
90 void DidSwapBuffersCompleteOnImplThread() override; | 91 void DidSwapBuffersCompleteOnImplThread() override; |
(...skipping 25 matching lines...) Expand all Loading... | |
116 | 117 |
117 protected: | 118 protected: |
118 SingleThreadProxy( | 119 SingleThreadProxy( |
119 LayerTreeHost* layer_tree_host, | 120 LayerTreeHost* layer_tree_host, |
120 LayerTreeHostSingleThreadClient* client, | 121 LayerTreeHostSingleThreadClient* client, |
121 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 122 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
122 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 123 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
123 | 124 |
124 private: | 125 private: |
125 void BeginMainFrame(); | 126 void BeginMainFrame(); |
127 void BeginMainFrameNoLongerRequired(); | |
brianderson
2015/02/11 01:58:11
Doesn't look like this is actually implemented.
rmcilroy
2015/02/11 12:01:19
Good catch, thanks. Done.
| |
126 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason); | 128 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason); |
127 void DoAnimate(); | 129 void DoAnimate(); |
128 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args); | 130 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args); |
129 void DoCommit(); | 131 void DoCommit(); |
130 DrawResult DoComposite(base::TimeTicks frame_begin_time, | 132 DrawResult DoComposite(base::TimeTicks frame_begin_time, |
131 LayerTreeHostImpl::FrameData* frame); | 133 LayerTreeHostImpl::FrameData* frame); |
132 void DoSwap(); | 134 void DoSwap(); |
133 void DidCommitAndDrawFrame(); | 135 void DidCommitAndDrawFrame(); |
134 void CommitComplete(); | 136 void CommitComplete(); |
135 | 137 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
229 private: | 231 private: |
230 DebugScopedSetImplThread impl_thread_; | 232 DebugScopedSetImplThread impl_thread_; |
231 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 233 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
232 | 234 |
233 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 235 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
234 }; | 236 }; |
235 | 237 |
236 } // namespace cc | 238 } // namespace cc |
237 | 239 |
238 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 240 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |