| 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 26 matching lines...) Expand all Loading... |
| 37 class HeadsUpDisplayLayerImpl; | 37 class HeadsUpDisplayLayerImpl; |
| 38 class LayerExternalScrollOffsetListener; | 38 class LayerExternalScrollOffsetListener; |
| 39 class LayerScrollOffsetDelegate; | 39 class LayerScrollOffsetDelegate; |
| 40 class LayerTreeDebugState; | 40 class LayerTreeDebugState; |
| 41 class LayerTreeImpl; | 41 class LayerTreeImpl; |
| 42 class LayerTreeSettings; | 42 class LayerTreeSettings; |
| 43 class MemoryHistory; | 43 class MemoryHistory; |
| 44 class OutputSurface; | 44 class OutputSurface; |
| 45 class PageScaleAnimation; | 45 class PageScaleAnimation; |
| 46 class PictureLayerImpl; | 46 class PictureLayerImpl; |
| 47 class Proxy; | 47 class TaskRunnerProvider; |
| 48 class ResourceProvider; | 48 class ResourceProvider; |
| 49 class TileManager; | 49 class TileManager; |
| 50 class UIResourceRequest; | 50 class UIResourceRequest; |
| 51 class VideoFrameControllerClient; | 51 class VideoFrameControllerClient; |
| 52 struct PendingPageScaleAnimation; | 52 struct PendingPageScaleAnimation; |
| 53 struct RendererCapabilities; | 53 struct RendererCapabilities; |
| 54 | 54 |
| 55 typedef std::vector<UIResourceRequest> UIResourceRequestQueue; | 55 typedef std::vector<UIResourceRequest> UIResourceRequestQueue; |
| 56 typedef SyncedProperty<AdditionGroup<float>> SyncedTopControls; | 56 typedef SyncedProperty<AdditionGroup<float>> SyncedTopControls; |
| 57 typedef SyncedProperty<AdditionGroup<gfx::Vector2dF>> SyncedElasticOverscroll; | 57 typedef SyncedProperty<AdditionGroup<gfx::Vector2dF>> SyncedElasticOverscroll; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 gfx::Rect DeviceViewport() const; | 99 gfx::Rect DeviceViewport() const; |
| 100 gfx::Size DrawViewportSize() const; | 100 gfx::Size DrawViewportSize() const; |
| 101 const gfx::Rect ViewportRectForTilePriority() const; | 101 const gfx::Rect ViewportRectForTilePriority() const; |
| 102 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController( | 102 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController( |
| 103 int scroll_layer_id); | 103 int scroll_layer_id); |
| 104 void DidAnimateScrollOffset(); | 104 void DidAnimateScrollOffset(); |
| 105 void InputScrollAnimationFinished(); | 105 void InputScrollAnimationFinished(); |
| 106 bool use_gpu_rasterization() const; | 106 bool use_gpu_rasterization() const; |
| 107 GpuRasterizationStatus GetGpuRasterizationStatus() const; | 107 GpuRasterizationStatus GetGpuRasterizationStatus() const; |
| 108 bool create_low_res_tiling() const; | 108 bool create_low_res_tiling() const; |
| 109 BlockingTaskRunner* BlockingMainThreadTaskRunner() const; | |
| 110 bool RequiresHighResToDraw() const; | 109 bool RequiresHighResToDraw() const; |
| 111 bool SmoothnessTakesPriority() const; | 110 bool SmoothnessTakesPriority() const; |
| 112 VideoFrameControllerClient* GetVideoFrameControllerClient() const; | 111 VideoFrameControllerClient* GetVideoFrameControllerClient() const; |
| 113 | 112 |
| 114 // Tree specific methods exposed to layer-impl tree. | 113 // Tree specific methods exposed to layer-impl tree. |
| 115 // --------------------------------------------------------------------------- | 114 // --------------------------------------------------------------------------- |
| 116 void SetNeedsRedraw(); | 115 void SetNeedsRedraw(); |
| 117 | 116 |
| 118 // Tracing methods. | 117 // Tracing methods. |
| 119 // --------------------------------------------------------------------------- | 118 // --------------------------------------------------------------------------- |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 AnimationRegistrar* GetAnimationRegistrar() const; | 258 AnimationRegistrar* GetAnimationRegistrar() const; |
| 260 | 259 |
| 261 void DidBecomeActive(); | 260 void DidBecomeActive(); |
| 262 | 261 |
| 263 // Set on the active tree when the viewport size recently changed | 262 // Set on the active tree when the viewport size recently changed |
| 264 // and the active tree's size is now out of date. | 263 // and the active tree's size is now out of date. |
| 265 bool ViewportSizeInvalid() const; | 264 bool ViewportSizeInvalid() const; |
| 266 void SetViewportSizeInvalid(); | 265 void SetViewportSizeInvalid(); |
| 267 void ResetViewportSizeInvalid(); | 266 void ResetViewportSizeInvalid(); |
| 268 | 267 |
| 269 // Useful for debug assertions, probably shouldn't be used for anything else. | 268 // Used for accessing the task runner and debug assertions. |
| 270 Proxy* proxy() const; | 269 TaskRunnerProvider* task_runner_provider() const; |
| 271 | 270 |
| 272 // Distribute the root scroll between outer and inner viewport scroll layer. | 271 // Distribute the root scroll between outer and inner viewport scroll layer. |
| 273 // The outer viewport scroll layer scrolls first. | 272 // The outer viewport scroll layer scrolls first. |
| 274 bool DistributeRootScrollOffset(const gfx::ScrollOffset& root_offset); | 273 bool DistributeRootScrollOffset(const gfx::ScrollOffset& root_offset); |
| 275 | 274 |
| 276 void ApplyScroll(LayerImpl* layer, ScrollState* scroll_state) { | 275 void ApplyScroll(LayerImpl* layer, ScrollState* scroll_state) { |
| 277 layer_tree_host_impl_->ApplyScroll(layer, scroll_state); | 276 layer_tree_host_impl_->ApplyScroll(layer, scroll_state); |
| 278 } | 277 } |
| 279 | 278 |
| 280 // Call this function when you expect there to be a swap buffer. | 279 // Call this function when you expect there to be a swap buffer. |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 | 493 |
| 495 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 494 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 496 | 495 |
| 497 private: | 496 private: |
| 498 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 497 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 499 }; | 498 }; |
| 500 | 499 |
| 501 } // namespace cc | 500 } // namespace cc |
| 502 | 501 |
| 503 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 502 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |