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