| 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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 void UpdateRootLayerStateForSynchronousInputHandler(); | 703 void UpdateRootLayerStateForSynchronousInputHandler(); |
| 704 | 704 |
| 705 bool ScrollAnimationUpdateTarget(ScrollNode* scroll_node, | 705 bool ScrollAnimationUpdateTarget(ScrollNode* scroll_node, |
| 706 const gfx::Vector2dF& scroll_delta, | 706 const gfx::Vector2dF& scroll_delta, |
| 707 base::TimeDelta delayed_by); | 707 base::TimeDelta delayed_by); |
| 708 | 708 |
| 709 void SetContextVisibility(bool is_visible); | 709 void SetContextVisibility(bool is_visible); |
| 710 void ImageDecodeFinished(const base::Callback<void(bool)>& embedder_callback, | 710 void ImageDecodeFinished(const base::Callback<void(bool)>& embedder_callback, |
| 711 bool decode_succeeded); | 711 bool decode_succeeded); |
| 712 | 712 |
| 713 void UpdateScrollSourceInfo(bool is_wheel_scroll); |
| 714 |
| 713 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>; | 715 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>; |
| 714 UIResourceMap ui_resource_map_; | 716 UIResourceMap ui_resource_map_; |
| 715 | 717 |
| 716 // Resources that were evicted by EvictAllUIResources. Resources are removed | 718 // Resources that were evicted by EvictAllUIResources. Resources are removed |
| 717 // from this when they are touched by a create or destroy from the UI resource | 719 // from this when they are touched by a create or destroy from the UI resource |
| 718 // request queue. | 720 // request queue. |
| 719 std::set<UIResourceId> evicted_ui_resources_; | 721 std::set<UIResourceId> evicted_ui_resources_; |
| 720 | 722 |
| 721 CompositorFrameSink* compositor_frame_sink_; | 723 CompositorFrameSink* compositor_frame_sink_; |
| 722 | 724 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 | 849 |
| 848 std::unique_ptr<LayerTreeMutator> mutator_; | 850 std::unique_ptr<LayerTreeMutator> mutator_; |
| 849 | 851 |
| 850 std::unique_ptr<PendingTreeDurationHistogramTimer> | 852 std::unique_ptr<PendingTreeDurationHistogramTimer> |
| 851 pending_tree_duration_timer_; | 853 pending_tree_duration_timer_; |
| 852 | 854 |
| 853 // These callbacks are stored here to be transfered to the main thread when we | 855 // These callbacks are stored here to be transfered to the main thread when we |
| 854 // begin main frame. These callbacks must only be called on the main thread. | 856 // begin main frame. These callbacks must only be called on the main thread. |
| 855 std::vector<base::Closure> completed_image_decode_callbacks_; | 857 std::vector<base::Closure> completed_image_decode_callbacks_; |
| 856 | 858 |
| 859 // This is used to transfer usage of touch and wheel scrolls to the main |
| 860 // thread. |
| 861 ScrollSourceInfo scroll_source_info_; |
| 862 |
| 857 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 863 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 858 }; | 864 }; |
| 859 | 865 |
| 860 } // namespace cc | 866 } // namespace cc |
| 861 | 867 |
| 862 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 868 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |