| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 void ScheduledActionCommit() override; | 220 void ScheduledActionCommit() override; |
| 221 void ScheduledActionActivateSyncTree() override; | 221 void ScheduledActionActivateSyncTree() override; |
| 222 void ScheduledActionBeginOutputSurfaceCreation() override; | 222 void ScheduledActionBeginOutputSurfaceCreation() override; |
| 223 void ScheduledActionPrepareTiles() override; | 223 void ScheduledActionPrepareTiles() override; |
| 224 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; | 224 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; |
| 225 base::TimeDelta DrawDurationEstimate() override; | 225 base::TimeDelta DrawDurationEstimate() override; |
| 226 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; | 226 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; |
| 227 base::TimeDelta CommitToActivateDurationEstimate() override; | 227 base::TimeDelta CommitToActivateDurationEstimate() override; |
| 228 void DidBeginImplFrameDeadline() override; | 228 void DidBeginImplFrameDeadline() override; |
| 229 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; | 229 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; |
| 230 void SendBeginMainFrameNotExpectedSoon() override; | |
| 231 | 230 |
| 232 // ResourceUpdateControllerClient implementation | 231 // ResourceUpdateControllerClient implementation |
| 233 void ReadyToFinalizeTextureUpdates() override; | 232 void ReadyToFinalizeTextureUpdates() override; |
| 234 | 233 |
| 235 protected: | 234 protected: |
| 236 ThreadProxy( | 235 ThreadProxy( |
| 237 LayerTreeHost* layer_tree_host, | 236 LayerTreeHost* layer_tree_host, |
| 238 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 237 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 239 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, | 238 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, |
| 240 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 239 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
| 241 | 240 |
| 242 private: | 241 private: |
| 243 // Called on main thread. | 242 // Called on main thread. |
| 244 void SetRendererCapabilitiesMainThreadCopy( | 243 void SetRendererCapabilitiesMainThreadCopy( |
| 245 const RendererCapabilities& capabilities); | 244 const RendererCapabilities& capabilities); |
| 246 void BeginMainFrame( | 245 void BeginMainFrame( |
| 247 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); | 246 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); |
| 248 void BeginMainFrameNotExpectedSoon(); | |
| 249 void DidCommitAndDrawFrame(); | 247 void DidCommitAndDrawFrame(); |
| 250 void DidCompleteSwapBuffers(); | 248 void DidCompleteSwapBuffers(); |
| 251 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue); | 249 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue); |
| 252 void DidLoseOutputSurface(); | 250 void DidLoseOutputSurface(); |
| 253 void RequestNewOutputSurface(); | 251 void RequestNewOutputSurface(); |
| 254 void DidInitializeOutputSurface(bool success, | 252 void DidInitializeOutputSurface(bool success, |
| 255 const RendererCapabilities& capabilities); | 253 const RendererCapabilities& capabilities); |
| 256 void SendCommitRequestToImplThreadIfNeeded(); | 254 void SendCommitRequestToImplThreadIfNeeded(); |
| 257 void DidCompletePageScaleAnimation(); | 255 void DidCompletePageScaleAnimation(); |
| 258 | 256 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 | 302 |
| 305 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 303 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 306 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 304 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
| 307 | 305 |
| 308 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 306 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 309 }; | 307 }; |
| 310 | 308 |
| 311 } // namespace cc | 309 } // namespace cc |
| 312 | 310 |
| 313 #endif // CC_TREES_THREAD_PROXY_H_ | 311 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |