| 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 29 matching lines...) Expand all Loading... |
| 40 class ImageDecodeController; | 40 class ImageDecodeController; |
| 41 class LayerExternalScrollOffsetListener; | 41 class LayerExternalScrollOffsetListener; |
| 42 class LayerTreeDebugState; | 42 class LayerTreeDebugState; |
| 43 class LayerTreeImpl; | 43 class LayerTreeImpl; |
| 44 class LayerTreeSettings; | 44 class LayerTreeSettings; |
| 45 class MemoryHistory; | 45 class MemoryHistory; |
| 46 class PageScaleAnimation; | 46 class PageScaleAnimation; |
| 47 class PictureLayerImpl; | 47 class PictureLayerImpl; |
| 48 class TaskRunnerProvider; | 48 class TaskRunnerProvider; |
| 49 class ResourceProvider; | 49 class ResourceProvider; |
| 50 class ScrollElasticityHelper; |
| 50 class TileManager; | 51 class TileManager; |
| 51 class UIResourceRequest; | 52 class UIResourceRequest; |
| 52 class VideoFrameControllerClient; | 53 class VideoFrameControllerClient; |
| 53 struct PendingPageScaleAnimation; | 54 struct PendingPageScaleAnimation; |
| 54 | 55 |
| 55 typedef std::vector<UIResourceRequest> UIResourceRequestQueue; | 56 typedef std::vector<UIResourceRequest> UIResourceRequestQueue; |
| 56 typedef SyncedProperty<AdditionGroup<float>> SyncedTopControls; | 57 typedef SyncedProperty<AdditionGroup<float>> SyncedTopControls; |
| 57 typedef SyncedProperty<AdditionGroup<gfx::Vector2dF>> SyncedElasticOverscroll; | 58 typedef SyncedProperty<AdditionGroup<gfx::Vector2dF>> SyncedElasticOverscroll; |
| 58 | 59 |
| 59 class CC_EXPORT LayerTreeImpl { | 60 class CC_EXPORT LayerTreeImpl { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 90 LayerImpl* FindActiveTreeLayerById(int id); | 91 LayerImpl* FindActiveTreeLayerById(int id); |
| 91 LayerImpl* FindPendingTreeLayerById(int id); | 92 LayerImpl* FindPendingTreeLayerById(int id); |
| 92 bool PinchGestureActive() const; | 93 bool PinchGestureActive() const; |
| 93 BeginFrameArgs CurrentBeginFrameArgs() const; | 94 BeginFrameArgs CurrentBeginFrameArgs() const; |
| 94 base::TimeDelta CurrentBeginFrameInterval() const; | 95 base::TimeDelta CurrentBeginFrameInterval() const; |
| 95 gfx::Rect DeviceViewport() const; | 96 gfx::Rect DeviceViewport() const; |
| 96 gfx::Size DrawViewportSize() const; | 97 gfx::Size DrawViewportSize() const; |
| 97 const gfx::Rect ViewportRectForTilePriority() const; | 98 const gfx::Rect ViewportRectForTilePriority() const; |
| 98 std::unique_ptr<ScrollbarAnimationController> | 99 std::unique_ptr<ScrollbarAnimationController> |
| 99 CreateScrollbarAnimationController(int scroll_layer_id); | 100 CreateScrollbarAnimationController(int scroll_layer_id); |
| 101 std::unique_ptr<ScrollElasticityHelper> CreateScrollElasticityHelper( |
| 102 int scroll_layer_id); |
| 100 void DidAnimateScrollOffset(); | 103 void DidAnimateScrollOffset(); |
| 101 bool use_gpu_rasterization() const; | 104 bool use_gpu_rasterization() const; |
| 102 GpuRasterizationStatus GetGpuRasterizationStatus() const; | 105 GpuRasterizationStatus GetGpuRasterizationStatus() const; |
| 103 bool create_low_res_tiling() const; | 106 bool create_low_res_tiling() const; |
| 104 bool RequiresHighResToDraw() const; | 107 bool RequiresHighResToDraw() const; |
| 105 bool SmoothnessTakesPriority() const; | 108 bool SmoothnessTakesPriority() const; |
| 106 VideoFrameControllerClient* GetVideoFrameControllerClient() const; | 109 VideoFrameControllerClient* GetVideoFrameControllerClient() const; |
| 107 AnimationHost* animation_host() const { | 110 AnimationHost* animation_host() const { |
| 108 return layer_tree_host_impl_->animation_host(); | 111 return layer_tree_host_impl_->animation_host(); |
| 109 } | 112 } |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 bool has_transparent_background() const { | 202 bool has_transparent_background() const { |
| 200 return has_transparent_background_; | 203 return has_transparent_background_; |
| 201 } | 204 } |
| 202 void set_has_transparent_background(bool transparent) { | 205 void set_has_transparent_background(bool transparent) { |
| 203 has_transparent_background_ = transparent; | 206 has_transparent_background_ = transparent; |
| 204 } | 207 } |
| 205 | 208 |
| 206 void UpdatePropertyTreeScrollingAndAnimationFromMainThread(); | 209 void UpdatePropertyTreeScrollingAndAnimationFromMainThread(); |
| 207 void UpdatePropertyTreeScrollOffset(PropertyTrees* property_trees) { | 210 void UpdatePropertyTreeScrollOffset(PropertyTrees* property_trees) { |
| 208 property_trees_.scroll_tree.UpdateScrollOffsetMap( | 211 property_trees_.scroll_tree.UpdateScrollOffsetMap( |
| 209 &property_trees->scroll_tree.scroll_offset_map(), this); | 212 &property_trees->scroll_tree, this); |
| 210 } | 213 } |
| 211 void SetPageScaleOnActiveTree(float active_page_scale); | 214 void SetPageScaleOnActiveTree(float active_page_scale); |
| 212 void PushPageScaleFromMainThread(float page_scale_factor, | 215 void PushPageScaleFromMainThread(float page_scale_factor, |
| 213 float min_page_scale_factor, | 216 float min_page_scale_factor, |
| 214 float max_page_scale_factor); | 217 float max_page_scale_factor); |
| 215 float current_page_scale_factor() const { | 218 float current_page_scale_factor() const { |
| 216 return page_scale_factor()->Current(IsActiveTree()); | 219 return page_scale_factor()->Current(IsActiveTree()); |
| 217 } | 220 } |
| 218 float min_page_scale_factor() const { return min_page_scale_factor_; } | 221 float min_page_scale_factor() const { return min_page_scale_factor_; } |
| 219 float max_page_scale_factor() const { return max_page_scale_factor_; } | 222 float max_page_scale_factor() const { return max_page_scale_factor_; } |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 | 565 |
| 563 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 566 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 564 | 567 |
| 565 private: | 568 private: |
| 566 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 569 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 567 }; | 570 }; |
| 568 | 571 |
| 569 } // namespace cc | 572 } // namespace cc |
| 570 | 573 |
| 571 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 574 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |