| 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_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <bitset> | 10 #include <bitset> |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 bool has_no_damage; | 229 bool has_no_damage; |
| 230 bool may_contain_video; | 230 bool may_contain_video; |
| 231 | 231 |
| 232 // RenderPassSink implementation. | 232 // RenderPassSink implementation. |
| 233 void AppendRenderPass(std::unique_ptr<RenderPass> render_pass) override; | 233 void AppendRenderPass(std::unique_ptr<RenderPass> render_pass) override; |
| 234 | 234 |
| 235 private: | 235 private: |
| 236 DISALLOW_COPY_AND_ASSIGN(FrameData); | 236 DISALLOW_COPY_AND_ASSIGN(FrameData); |
| 237 }; | 237 }; |
| 238 | 238 |
| 239 virtual void BeginMainFrameAborted(CommitEarlyOutReason reason); | 239 virtual void BeginMainFrameAborted( |
| 240 CommitEarlyOutReason reason, |
| 241 std::vector<std::unique_ptr<SwapPromise>> swap_promises); |
| 240 virtual void ReadyToCommit() {} // For tests. | 242 virtual void ReadyToCommit() {} // For tests. |
| 241 virtual void BeginCommit(); | 243 virtual void BeginCommit(); |
| 242 virtual void CommitComplete(); | 244 virtual void CommitComplete(); |
| 243 virtual void UpdateAnimationState(bool start_ready_animations); | 245 virtual void UpdateAnimationState(bool start_ready_animations); |
| 244 bool Mutate(base::TimeTicks monotonic_time); | 246 bool Mutate(base::TimeTicks monotonic_time); |
| 245 void ActivateAnimations(); | 247 void ActivateAnimations(); |
| 246 void Animate(); | 248 void Animate(); |
| 247 void AnimatePendingTreeAfterCommit(); | 249 void AnimatePendingTreeAfterCommit(); |
| 248 void MainThreadHasStoppedFlinging(); | 250 void MainThreadHasStoppedFlinging(); |
| 249 void DidAnimateScrollOffset(); | 251 void DidAnimateScrollOffset(); |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 const gfx::Transform& DrawTransform() const; | 484 const gfx::Transform& DrawTransform() const; |
| 483 | 485 |
| 484 std::unique_ptr<BeginFrameCallbackList> ProcessLayerTreeMutations(); | 486 std::unique_ptr<BeginFrameCallbackList> ProcessLayerTreeMutations(); |
| 485 | 487 |
| 486 std::unique_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); | 488 std::unique_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); |
| 487 | 489 |
| 488 void set_max_memory_needed_bytes(size_t bytes) { | 490 void set_max_memory_needed_bytes(size_t bytes) { |
| 489 max_memory_needed_bytes_ = bytes; | 491 max_memory_needed_bytes_ = bytes; |
| 490 } | 492 } |
| 491 | 493 |
| 492 FrameRateCounter* fps_counter() { | 494 FrameRateCounter* fps_counter() { return fps_counter_.get(); } |
| 493 return fps_counter_.get(); | 495 MemoryHistory* memory_history() { return memory_history_.get(); } |
| 494 } | 496 DebugRectHistory* debug_rect_history() { return debug_rect_history_.get(); } |
| 495 MemoryHistory* memory_history() { | 497 ResourceProvider* resource_provider() { return resource_provider_.get(); } |
| 496 return memory_history_.get(); | |
| 497 } | |
| 498 DebugRectHistory* debug_rect_history() { | |
| 499 return debug_rect_history_.get(); | |
| 500 } | |
| 501 ResourceProvider* resource_provider() { | |
| 502 return resource_provider_.get(); | |
| 503 } | |
| 504 TopControlsManager* top_controls_manager() { | 498 TopControlsManager* top_controls_manager() { |
| 505 return top_controls_manager_.get(); | 499 return top_controls_manager_.get(); |
| 506 } | 500 } |
| 507 const GlobalStateThatImpactsTilePriority& global_tile_state() { | 501 const GlobalStateThatImpactsTilePriority& global_tile_state() { |
| 508 return global_tile_state_; | 502 return global_tile_state_; |
| 509 } | 503 } |
| 510 | 504 |
| 511 TaskRunnerProvider* task_runner_provider() const { | 505 TaskRunnerProvider* task_runner_provider() const { |
| 512 return task_runner_provider_; | 506 return task_runner_provider_; |
| 513 } | 507 } |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 | 845 |
| 852 std::unique_ptr<PendingTreeDurationHistogramTimer> | 846 std::unique_ptr<PendingTreeDurationHistogramTimer> |
| 853 pending_tree_duration_timer_; | 847 pending_tree_duration_timer_; |
| 854 | 848 |
| 855 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 849 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 856 }; | 850 }; |
| 857 | 851 |
| 858 } // namespace cc | 852 } // namespace cc |
| 859 | 853 |
| 860 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 854 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |