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_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_THREAD_PROXY_H_ |
6 #define CC_TREES_THREAD_PROXY_H_ | 6 #define CC_TREES_THREAD_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 void PostAnimationEventsToMainThreadOnImplThread( | 200 void PostAnimationEventsToMainThreadOnImplThread( |
201 scoped_ptr<AnimationEventsVector> queue) override; | 201 scoped_ptr<AnimationEventsVector> queue) override; |
202 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, | 202 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, |
203 int priority_cutoff) override; | 203 int priority_cutoff) override; |
204 bool IsInsideDraw() override; | 204 bool IsInsideDraw() override; |
205 void RenewTreePriority() override; | 205 void RenewTreePriority() override; |
206 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, | 206 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, |
207 base::TimeDelta delay) override; | 207 base::TimeDelta delay) override; |
208 void DidActivateSyncTree() override; | 208 void DidActivateSyncTree() override; |
209 void DidPrepareTiles() override; | 209 void DidPrepareTiles() override; |
| 210 void DidCompletePageScaleAnimationOnImplThread() override; |
210 | 211 |
211 // SchedulerClient implementation | 212 // SchedulerClient implementation |
212 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 213 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
213 void ScheduledActionSendBeginMainFrame() override; | 214 void ScheduledActionSendBeginMainFrame() override; |
214 DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 215 DrawResult ScheduledActionDrawAndSwapIfPossible() override; |
215 DrawResult ScheduledActionDrawAndSwapForced() override; | 216 DrawResult ScheduledActionDrawAndSwapForced() override; |
216 void ScheduledActionAnimate() override; | 217 void ScheduledActionAnimate() override; |
217 void ScheduledActionCommit() override; | 218 void ScheduledActionCommit() override; |
218 void ScheduledActionActivateSyncTree() override; | 219 void ScheduledActionActivateSyncTree() override; |
219 void ScheduledActionBeginOutputSurfaceCreation() override; | 220 void ScheduledActionBeginOutputSurfaceCreation() override; |
(...skipping 22 matching lines...) Expand all Loading... |
242 void BeginMainFrame( | 243 void BeginMainFrame( |
243 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); | 244 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); |
244 void DidCommitAndDrawFrame(); | 245 void DidCommitAndDrawFrame(); |
245 void DidCompleteSwapBuffers(); | 246 void DidCompleteSwapBuffers(); |
246 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue); | 247 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue); |
247 void DidLoseOutputSurface(); | 248 void DidLoseOutputSurface(); |
248 void RequestNewOutputSurface(); | 249 void RequestNewOutputSurface(); |
249 void DidInitializeOutputSurface(bool success, | 250 void DidInitializeOutputSurface(bool success, |
250 const RendererCapabilities& capabilities); | 251 const RendererCapabilities& capabilities); |
251 void SendCommitRequestToImplThreadIfNeeded(); | 252 void SendCommitRequestToImplThreadIfNeeded(); |
| 253 void DidCompletePageScaleAnimation(); |
252 | 254 |
253 // Called on impl thread. | 255 // Called on impl thread. |
254 struct SchedulerStateRequest; | 256 struct SchedulerStateRequest; |
255 | 257 |
256 void StartCommitOnImplThread(CompletionEvent* completion, | 258 void StartCommitOnImplThread(CompletionEvent* completion, |
257 ResourceUpdateQueue* queue); | 259 ResourceUpdateQueue* queue); |
258 void BeginMainFrameAbortedOnImplThread(bool did_handle); | 260 void BeginMainFrameAbortedOnImplThread(bool did_handle); |
259 void FinishAllRenderingOnImplThread(CompletionEvent* completion); | 261 void FinishAllRenderingOnImplThread(CompletionEvent* completion); |
260 void InitializeImplOnImplThread(CompletionEvent* completion); | 262 void InitializeImplOnImplThread(CompletionEvent* completion); |
261 void SetLayerTreeHostClientReadyOnImplThread(); | 263 void SetLayerTreeHostClientReadyOnImplThread(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 | 298 |
297 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 299 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
298 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 300 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
299 | 301 |
300 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 302 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
301 }; | 303 }; |
302 | 304 |
303 } // namespace cc | 305 } // namespace cc |
304 | 306 |
305 #endif // CC_TREES_THREAD_PROXY_H_ | 307 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |