| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 LayerImplList will_draw_layers; | 228 LayerImplList will_draw_layers; |
| 229 bool has_no_damage; | 229 bool has_no_damage; |
| 230 | 230 |
| 231 // RenderPassSink implementation. | 231 // RenderPassSink implementation. |
| 232 void AppendRenderPass(std::unique_ptr<RenderPass> render_pass) override; | 232 void AppendRenderPass(std::unique_ptr<RenderPass> render_pass) override; |
| 233 | 233 |
| 234 private: | 234 private: |
| 235 DISALLOW_COPY_AND_ASSIGN(FrameData); | 235 DISALLOW_COPY_AND_ASSIGN(FrameData); |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 virtual void BeginMainFrameAborted(CommitEarlyOutReason reason); | 238 virtual void BeginMainFrameAborted( |
| 239 CommitEarlyOutReason reason, |
| 240 std::vector<std::unique_ptr<SwapPromise>> swap_promises); |
| 239 virtual void ReadyToCommit() {} // For tests. | 241 virtual void ReadyToCommit() {} // For tests. |
| 240 virtual void BeginCommit(); | 242 virtual void BeginCommit(); |
| 241 virtual void CommitComplete(); | 243 virtual void CommitComplete(); |
| 242 virtual void UpdateAnimationState(bool start_ready_animations); | 244 virtual void UpdateAnimationState(bool start_ready_animations); |
| 243 bool Mutate(base::TimeTicks monotonic_time); | 245 bool Mutate(base::TimeTicks monotonic_time); |
| 244 void ActivateAnimations(); | 246 void ActivateAnimations(); |
| 245 void Animate(); | 247 void Animate(); |
| 246 void AnimatePendingTreeAfterCommit(); | 248 void AnimatePendingTreeAfterCommit(); |
| 247 void MainThreadHasStoppedFlinging(); | 249 void MainThreadHasStoppedFlinging(); |
| 248 void DidAnimateScrollOffset(); | 250 void DidAnimateScrollOffset(); |
| (...skipping 233 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 | 848 |
| 855 std::unique_ptr<PendingTreeDurationHistogramTimer> | 849 std::unique_ptr<PendingTreeDurationHistogramTimer> |
| 856 pending_tree_duration_timer_; | 850 pending_tree_duration_timer_; |
| 857 | 851 |
| 858 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 852 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 859 }; | 853 }; |
| 860 | 854 |
| 861 } // namespace cc | 855 } // namespace cc |
| 862 | 856 |
| 863 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 857 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |