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