| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class LayerExternalScrollOffsetListener; | 42 class LayerExternalScrollOffsetListener; |
| 43 class LayerTreeDebugState; | 43 class LayerTreeDebugState; |
| 44 class LayerTreeImpl; | 44 class LayerTreeImpl; |
| 45 class LayerTreeSettings; | 45 class LayerTreeSettings; |
| 46 class MemoryHistory; | 46 class MemoryHistory; |
| 47 class OutputSurface; | 47 class OutputSurface; |
| 48 class PageScaleAnimation; | 48 class PageScaleAnimation; |
| 49 class PictureLayerImpl; | 49 class PictureLayerImpl; |
| 50 class TaskRunnerProvider; | 50 class TaskRunnerProvider; |
| 51 class ResourceProvider; | 51 class ResourceProvider; |
| 52 class ScrollElasticityHelper; |
| 52 class TileManager; | 53 class TileManager; |
| 53 class UIResourceRequest; | 54 class UIResourceRequest; |
| 54 class VideoFrameControllerClient; | 55 class VideoFrameControllerClient; |
| 55 struct PendingPageScaleAnimation; | 56 struct PendingPageScaleAnimation; |
| 56 struct RendererCapabilities; | 57 struct RendererCapabilities; |
| 57 | 58 |
| 58 typedef std::vector<UIResourceRequest> UIResourceRequestQueue; | 59 typedef std::vector<UIResourceRequest> UIResourceRequestQueue; |
| 59 typedef SyncedProperty<AdditionGroup<float>> SyncedTopControls; | 60 typedef SyncedProperty<AdditionGroup<float>> SyncedTopControls; |
| 60 typedef SyncedProperty<AdditionGroup<gfx::Vector2dF>> SyncedElasticOverscroll; | 61 typedef SyncedProperty<AdditionGroup<gfx::Vector2dF>> SyncedElasticOverscroll; |
| 61 | 62 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 LayerImpl* FindActiveTreeLayerById(int id); | 96 LayerImpl* FindActiveTreeLayerById(int id); |
| 96 LayerImpl* FindPendingTreeLayerById(int id); | 97 LayerImpl* FindPendingTreeLayerById(int id); |
| 97 bool PinchGestureActive() const; | 98 bool PinchGestureActive() const; |
| 98 BeginFrameArgs CurrentBeginFrameArgs() const; | 99 BeginFrameArgs CurrentBeginFrameArgs() const; |
| 99 base::TimeDelta CurrentBeginFrameInterval() const; | 100 base::TimeDelta CurrentBeginFrameInterval() const; |
| 100 gfx::Rect DeviceViewport() const; | 101 gfx::Rect DeviceViewport() const; |
| 101 gfx::Size DrawViewportSize() const; | 102 gfx::Size DrawViewportSize() const; |
| 102 const gfx::Rect ViewportRectForTilePriority() const; | 103 const gfx::Rect ViewportRectForTilePriority() const; |
| 103 std::unique_ptr<ScrollbarAnimationController> | 104 std::unique_ptr<ScrollbarAnimationController> |
| 104 CreateScrollbarAnimationController(int scroll_layer_id); | 105 CreateScrollbarAnimationController(int scroll_layer_id); |
| 106 std::unique_ptr<ScrollElasticityHelper> CreateScrollElasticityHelper( |
| 107 int scroll_layer_id); |
| 105 void DidAnimateScrollOffset(); | 108 void DidAnimateScrollOffset(); |
| 106 bool use_gpu_rasterization() const; | 109 bool use_gpu_rasterization() const; |
| 107 GpuRasterizationStatus GetGpuRasterizationStatus() const; | 110 GpuRasterizationStatus GetGpuRasterizationStatus() const; |
| 108 bool create_low_res_tiling() const; | 111 bool create_low_res_tiling() const; |
| 109 bool RequiresHighResToDraw() const; | 112 bool RequiresHighResToDraw() const; |
| 110 bool SmoothnessTakesPriority() const; | 113 bool SmoothnessTakesPriority() const; |
| 111 VideoFrameControllerClient* GetVideoFrameControllerClient() const; | 114 VideoFrameControllerClient* GetVideoFrameControllerClient() const; |
| 112 AnimationHost* animation_host() const { | 115 AnimationHost* animation_host() const { |
| 113 return layer_tree_host_impl_->animation_host(); | 116 return layer_tree_host_impl_->animation_host(); |
| 114 } | 117 } |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 bool has_transparent_background() const { | 205 bool has_transparent_background() const { |
| 203 return has_transparent_background_; | 206 return has_transparent_background_; |
| 204 } | 207 } |
| 205 void set_has_transparent_background(bool transparent) { | 208 void set_has_transparent_background(bool transparent) { |
| 206 has_transparent_background_ = transparent; | 209 has_transparent_background_ = transparent; |
| 207 } | 210 } |
| 208 | 211 |
| 209 void UpdatePropertyTreeScrollingAndAnimationFromMainThread(); | 212 void UpdatePropertyTreeScrollingAndAnimationFromMainThread(); |
| 210 void UpdatePropertyTreeScrollOffset(PropertyTrees* property_trees) { | 213 void UpdatePropertyTreeScrollOffset(PropertyTrees* property_trees) { |
| 211 property_trees_.scroll_tree.UpdateScrollOffsetMap( | 214 property_trees_.scroll_tree.UpdateScrollOffsetMap( |
| 212 &property_trees->scroll_tree.scroll_offset_map(), this); | 215 &property_trees->scroll_tree, this); |
| 213 } | 216 } |
| 214 void SetPageScaleOnActiveTree(float active_page_scale); | 217 void SetPageScaleOnActiveTree(float active_page_scale); |
| 215 void PushPageScaleFromMainThread(float page_scale_factor, | 218 void PushPageScaleFromMainThread(float page_scale_factor, |
| 216 float min_page_scale_factor, | 219 float min_page_scale_factor, |
| 217 float max_page_scale_factor); | 220 float max_page_scale_factor); |
| 218 float current_page_scale_factor() const { | 221 float current_page_scale_factor() const { |
| 219 return page_scale_factor()->Current(IsActiveTree()); | 222 return page_scale_factor()->Current(IsActiveTree()); |
| 220 } | 223 } |
| 221 float min_page_scale_factor() const { return min_page_scale_factor_; } | 224 float min_page_scale_factor() const { return min_page_scale_factor_; } |
| 222 float max_page_scale_factor() const { return max_page_scale_factor_; } | 225 float max_page_scale_factor() const { return max_page_scale_factor_; } |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 | 553 |
| 551 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 554 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 552 | 555 |
| 553 private: | 556 private: |
| 554 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 557 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 555 }; | 558 }; |
| 556 | 559 |
| 557 } // namespace cc | 560 } // namespace cc |
| 558 | 561 |
| 559 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 562 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |