| 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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 void NotifySwapPromiseMonitorsOfSetNeedsRedraw(); | 721 void NotifySwapPromiseMonitorsOfSetNeedsRedraw(); |
| 722 void NotifySwapPromiseMonitorsOfForwardingToMainThread(); | 722 void NotifySwapPromiseMonitorsOfForwardingToMainThread(); |
| 723 | 723 |
| 724 void UpdateRootLayerStateForSynchronousInputHandler(); | 724 void UpdateRootLayerStateForSynchronousInputHandler(); |
| 725 | 725 |
| 726 void ScrollAnimationAbort(LayerImpl* layer_impl); | 726 void ScrollAnimationAbort(LayerImpl* layer_impl); |
| 727 | 727 |
| 728 bool ScrollAnimationUpdateTarget(ScrollNode* scroll_node, | 728 bool ScrollAnimationUpdateTarget(ScrollNode* scroll_node, |
| 729 const gfx::Vector2dF& scroll_delta); | 729 const gfx::Vector2dF& scroll_delta); |
| 730 | 730 |
| 731 void AdjustDuration(base::TimeDelta adjustment) override; |
| 732 |
| 731 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>; | 733 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>; |
| 732 UIResourceMap ui_resource_map_; | 734 UIResourceMap ui_resource_map_; |
| 733 | 735 |
| 734 // Resources that were evicted by EvictAllUIResources. Resources are removed | 736 // Resources that were evicted by EvictAllUIResources. Resources are removed |
| 735 // from this when they are touched by a create or destroy from the UI resource | 737 // from this when they are touched by a create or destroy from the UI resource |
| 736 // request queue. | 738 // request queue. |
| 737 std::set<UIResourceId> evicted_ui_resources_; | 739 std::set<UIResourceId> evicted_ui_resources_; |
| 738 | 740 |
| 739 OutputSurface* output_surface_; | 741 OutputSurface* output_surface_; |
| 740 | 742 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 fixed_raster_scale_attempted_scale_change_history_; | 862 fixed_raster_scale_attempted_scale_change_history_; |
| 861 std::unique_ptr<PendingTreeDurationHistogramTimer> | 863 std::unique_ptr<PendingTreeDurationHistogramTimer> |
| 862 pending_tree_duration_timer_; | 864 pending_tree_duration_timer_; |
| 863 | 865 |
| 864 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 866 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 865 }; | 867 }; |
| 866 | 868 |
| 867 } // namespace cc | 869 } // namespace cc |
| 868 | 870 |
| 869 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 871 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |