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