Chromium Code Reviews| 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 <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 222 gfx::Size DrawViewportSize() const; | 222 gfx::Size DrawViewportSize() const; |
| 223 | 223 |
| 224 // Viewport size for scrolling and fixed-position compensation. This value | 224 // Viewport size for scrolling and fixed-position compensation. This value |
| 225 // excludes the URL bar and non-overlay scrollbars and is in DIP (and | 225 // excludes the URL bar and non-overlay scrollbars and is in DIP (and |
| 226 // invariant relative to page scale). | 226 // invariant relative to page scale). |
| 227 gfx::SizeF UnscaledScrollableViewportSize() const; | 227 gfx::SizeF UnscaledScrollableViewportSize() const; |
| 228 float VerticalAdjust() const; | 228 float VerticalAdjust() const; |
| 229 | 229 |
| 230 // RendererClient implementation. | 230 // RendererClient implementation. |
| 231 virtual void SetFullRootLayerDamage() OVERRIDE; | 231 virtual void SetFullRootLayerDamage() OVERRIDE; |
| 232 virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE; | |
| 232 | 233 |
| 233 // TileManagerClient implementation. | 234 // TileManagerClient implementation. |
| 234 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() OVERRIDE; | 235 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() OVERRIDE; |
| 235 virtual void NotifyReadyToActivate() OVERRIDE; | 236 virtual void NotifyReadyToActivate() OVERRIDE; |
| 236 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE; | 237 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE; |
| 237 | 238 |
| 238 // ScrollbarAnimationControllerClient implementation. | 239 // ScrollbarAnimationControllerClient implementation. |
| 239 virtual void PostDelayedScrollbarFade(const base::Closure& start_fade, | 240 virtual void PostDelayedScrollbarFade(const base::Closure& start_fade, |
| 240 base::TimeDelta delay) OVERRIDE; | 241 base::TimeDelta delay) OVERRIDE; |
| 241 virtual void SetNeedsScrollbarAnimationFrame() OVERRIDE; | 242 virtual void SetNeedsScrollbarAnimationFrame() OVERRIDE; |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 566 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- | 567 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- |
| 567 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). | 568 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). |
| 568 scoped_ptr<ResourceProvider> resource_provider_; | 569 scoped_ptr<ResourceProvider> resource_provider_; |
| 569 scoped_ptr<TileManager> tile_manager_; | 570 scoped_ptr<TileManager> tile_manager_; |
| 570 bool use_gpu_rasterization_; | 571 bool use_gpu_rasterization_; |
| 571 scoped_ptr<RasterWorkerPool> raster_worker_pool_; | 572 scoped_ptr<RasterWorkerPool> raster_worker_pool_; |
| 572 scoped_ptr<ResourcePool> resource_pool_; | 573 scoped_ptr<ResourcePool> resource_pool_; |
| 573 scoped_ptr<ResourcePool> staging_resource_pool_; | 574 scoped_ptr<ResourcePool> staging_resource_pool_; |
| 574 scoped_ptr<Renderer> renderer_; | 575 scoped_ptr<Renderer> renderer_; |
| 575 | 576 |
| 577 scoped_ptr<TaskGraphRunner> synchronous_on_demand_task_graph_runner_; | |
|
reveman
2014/06/20 03:56:30
you could just call it |synchronous_task_graph_run
| |
| 578 TaskGraphRunner* on_demand_task_graph_runner_; | |
| 579 NamespaceToken on_demand_task_namespace_; | |
| 580 | |
| 576 GlobalStateThatImpactsTilePriority global_tile_state_; | 581 GlobalStateThatImpactsTilePriority global_tile_state_; |
| 577 | 582 |
| 578 // Tree currently being drawn. | 583 // Tree currently being drawn. |
| 579 scoped_ptr<LayerTreeImpl> active_tree_; | 584 scoped_ptr<LayerTreeImpl> active_tree_; |
| 580 | 585 |
| 581 // In impl-side painting mode, tree with possibly incomplete rasterized | 586 // In impl-side painting mode, tree with possibly incomplete rasterized |
| 582 // content. May be promoted to active by ActivatePendingTree(). | 587 // content. May be promoted to active by ActivatePendingTree(). |
| 583 scoped_ptr<LayerTreeImpl> pending_tree_; | 588 scoped_ptr<LayerTreeImpl> pending_tree_; |
| 584 | 589 |
| 585 // In impl-side painting mode, inert tree with layers that can be recycled | 590 // In impl-side painting mode, inert tree with layers that can be recycled |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 686 size_t transfer_buffer_memory_limit_; | 691 size_t transfer_buffer_memory_limit_; |
| 687 | 692 |
| 688 std::vector<PictureLayerImpl*> picture_layers_; | 693 std::vector<PictureLayerImpl*> picture_layers_; |
| 689 | 694 |
| 690 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 695 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 691 }; | 696 }; |
| 692 | 697 |
| 693 } // namespace cc | 698 } // namespace cc |
| 694 | 699 |
| 695 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 700 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |