| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 bool IsRecycleTree() const; | 87 bool IsRecycleTree() const; |
| 88 bool IsSyncTree() const; | 88 bool IsSyncTree() const; |
| 89 LayerImpl* FindActiveTreeLayerById(int id); | 89 LayerImpl* FindActiveTreeLayerById(int id); |
| 90 LayerImpl* FindPendingTreeLayerById(int id); | 90 LayerImpl* FindPendingTreeLayerById(int id); |
| 91 bool PinchGestureActive() const; | 91 bool PinchGestureActive() const; |
| 92 BeginFrameArgs CurrentBeginFrameArgs() const; | 92 BeginFrameArgs CurrentBeginFrameArgs() const; |
| 93 base::TimeDelta CurrentBeginFrameInterval() const; | 93 base::TimeDelta CurrentBeginFrameInterval() const; |
| 94 gfx::Rect DeviceViewport() const; | 94 gfx::Rect DeviceViewport() const; |
| 95 const gfx::Rect ViewportRectForTilePriority() const; | 95 const gfx::Rect ViewportRectForTilePriority() const; |
| 96 std::unique_ptr<ScrollbarAnimationController> | 96 std::unique_ptr<ScrollbarAnimationController> |
| 97 CreateScrollbarAnimationController(ElementId scroll_element_id); | 97 CreateScrollbarAnimationController(ElementId scroll_element_id, |
| 98 float initial_opacity); |
| 98 void DidAnimateScrollOffset(); | 99 void DidAnimateScrollOffset(); |
| 99 bool use_gpu_rasterization() const; | 100 bool use_gpu_rasterization() const; |
| 100 GpuRasterizationStatus GetGpuRasterizationStatus() const; | 101 GpuRasterizationStatus GetGpuRasterizationStatus() const; |
| 101 bool create_low_res_tiling() const; | 102 bool create_low_res_tiling() const; |
| 102 bool RequiresHighResToDraw() const; | 103 bool RequiresHighResToDraw() const; |
| 103 bool SmoothnessTakesPriority() const; | 104 bool SmoothnessTakesPriority() const; |
| 104 VideoFrameControllerClient* GetVideoFrameControllerClient() const; | 105 VideoFrameControllerClient* GetVideoFrameControllerClient() const; |
| 105 MutatorHost* mutator_host() const { | 106 MutatorHost* mutator_host() const { |
| 106 return layer_tree_host_impl_->mutator_host(); | 107 return layer_tree_host_impl_->mutator_host(); |
| 107 } | 108 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 135 | 136 |
| 136 void MoveChangeTrackingToLayers(); | 137 void MoveChangeTrackingToLayers(); |
| 137 | 138 |
| 138 void ForceRecalculateRasterScales(); | 139 void ForceRecalculateRasterScales(); |
| 139 | 140 |
| 140 LayerImplList::const_iterator begin() const; | 141 LayerImplList::const_iterator begin() const; |
| 141 LayerImplList::const_iterator end() const; | 142 LayerImplList::const_iterator end() const; |
| 142 LayerImplList::reverse_iterator rbegin(); | 143 LayerImplList::reverse_iterator rbegin(); |
| 143 LayerImplList::reverse_iterator rend(); | 144 LayerImplList::reverse_iterator rend(); |
| 144 | 145 |
| 145 // TODO(crbug.com/702832): This won't be needed if overlay scrollbars have | |
| 146 // element ids. | |
| 147 void AddToOpacityAnimationsMap(int id, float opacity); | |
| 148 | |
| 149 void SetTransformMutated(ElementId element_id, | 146 void SetTransformMutated(ElementId element_id, |
| 150 const gfx::Transform& transform); | 147 const gfx::Transform& transform); |
| 151 void SetOpacityMutated(ElementId element_id, float opacity); | 148 void SetOpacityMutated(ElementId element_id, float opacity); |
| 152 void SetFilterMutated(ElementId element_id, const FilterOperations& filters); | 149 void SetFilterMutated(ElementId element_id, const FilterOperations& filters); |
| 153 | 150 |
| 154 int source_frame_number() const { return source_frame_number_; } | 151 int source_frame_number() const { return source_frame_number_; } |
| 155 void set_source_frame_number(int frame_number) { | 152 void set_source_frame_number(int frame_number) { |
| 156 source_frame_number_ = frame_number; | 153 source_frame_number_ = frame_number; |
| 157 } | 154 } |
| 158 | 155 |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 | 581 |
| 585 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 582 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 586 | 583 |
| 587 private: | 584 private: |
| 588 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 585 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 589 }; | 586 }; |
| 590 | 587 |
| 591 } // namespace cc | 588 } // namespace cc |
| 592 | 589 |
| 593 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 590 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |