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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 base::TimeDelta DrawDurationEstimate() override; | 75 base::TimeDelta DrawDurationEstimate() override; |
76 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; | 76 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; |
77 base::TimeDelta CommitToActivateDurationEstimate() override; | 77 base::TimeDelta CommitToActivateDurationEstimate() override; |
78 void DidBeginImplFrameDeadline() override; | 78 void DidBeginImplFrameDeadline() override; |
79 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; | 79 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; |
80 | 80 |
81 // LayerTreeHostImplClient implementation | 81 // LayerTreeHostImplClient implementation |
82 void UpdateRendererCapabilitiesOnImplThread() override; | 82 void UpdateRendererCapabilitiesOnImplThread() override; |
83 void DidLoseOutputSurfaceOnImplThread() override; | 83 void DidLoseOutputSurfaceOnImplThread() override; |
84 void CommitVSyncParameters(base::TimeTicks timebase, | 84 void CommitVSyncParameters(base::TimeTicks timebase, |
85 base::TimeDelta interval) override {} | 85 base::TimeDelta interval) override; |
86 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} | 86 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} |
87 void SetMaxSwapsPendingOnImplThread(int max) override {} | 87 void SetMaxSwapsPendingOnImplThread(int max) override {} |
88 void DidSwapBuffersOnImplThread() override; | 88 void DidSwapBuffersOnImplThread() override; |
89 void DidSwapBuffersCompleteOnImplThread() override; | 89 void DidSwapBuffersCompleteOnImplThread() override; |
90 void OnCanDrawStateChanged(bool can_draw) override; | 90 void OnCanDrawStateChanged(bool can_draw) override; |
91 void NotifyReadyToActivate() override; | 91 void NotifyReadyToActivate() override; |
92 void NotifyReadyToDraw() override; | 92 void NotifyReadyToDraw() override; |
93 void SetNeedsRedrawOnImplThread() override; | 93 void SetNeedsRedrawOnImplThread() override; |
94 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 94 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; |
95 void SetNeedsAnimateOnImplThread() override; | 95 void SetNeedsAnimateOnImplThread() override; |
(...skipping 17 matching lines...) Expand all Loading... |
113 void CompositeImmediately(base::TimeTicks frame_begin_time); | 113 void CompositeImmediately(base::TimeTicks frame_begin_time); |
114 | 114 |
115 private: | 115 private: |
116 SingleThreadProxy( | 116 SingleThreadProxy( |
117 LayerTreeHost* layer_tree_host, | 117 LayerTreeHost* layer_tree_host, |
118 LayerTreeHostSingleThreadClient* client, | 118 LayerTreeHostSingleThreadClient* client, |
119 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 119 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
120 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 120 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
121 | 121 |
122 void BeginMainFrame(); | 122 void BeginMainFrame(); |
123 void BeginMainFrameAbortedOnImplThread(); | 123 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason); |
124 void DoAnimate(); | 124 void DoAnimate(); |
125 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args); | 125 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args); |
126 void DoCommit(); | 126 void DoCommit(); |
127 DrawResult DoComposite(base::TimeTicks frame_begin_time, | 127 DrawResult DoComposite(base::TimeTicks frame_begin_time, |
128 LayerTreeHostImpl::FrameData* frame); | 128 LayerTreeHostImpl::FrameData* frame); |
129 void DoSwap(); | 129 void DoSwap(); |
130 void DidCommitAndDrawFrame(); | 130 void DidCommitAndDrawFrame(); |
131 void CommitComplete(); | 131 void CommitComplete(); |
132 | 132 |
133 bool ShouldComposite() const; | 133 bool ShouldComposite() const; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 private: | 227 private: |
228 DebugScopedSetImplThread impl_thread_; | 228 DebugScopedSetImplThread impl_thread_; |
229 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 229 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
230 | 230 |
231 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 231 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
232 }; | 232 }; |
233 | 233 |
234 } // namespace cc | 234 } // namespace cc |
235 | 235 |
236 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 236 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |