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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 Proxy* proxy_; | 463 Proxy* proxy_; |
464 | 464 |
465 private: | 465 private: |
466 void CreateAndSetRenderer( | 466 void CreateAndSetRenderer( |
467 OutputSurface* output_surface, | 467 OutputSurface* output_surface, |
468 ResourceProvider* resource_provider, | 468 ResourceProvider* resource_provider, |
469 bool skip_gl_renderer); | 469 bool skip_gl_renderer); |
470 void CreateAndSetTileManager(ResourceProvider* resource_provider, | 470 void CreateAndSetTileManager(ResourceProvider* resource_provider, |
471 ContextProvider* context_provider, | 471 ContextProvider* context_provider, |
472 bool using_map_image, | 472 bool using_map_image, |
| 473 bool use_staging_pool, |
473 bool allow_rasterize_on_demand); | 474 bool allow_rasterize_on_demand); |
474 void ReleaseTreeResources(); | 475 void ReleaseTreeResources(); |
475 void EnforceZeroBudget(bool zero_budget); | 476 void EnforceZeroBudget(bool zero_budget); |
476 | 477 |
477 void ScrollViewportBy(gfx::Vector2dF scroll_delta); | 478 void ScrollViewportBy(gfx::Vector2dF scroll_delta); |
478 void AnimatePageScale(base::TimeTicks monotonic_time); | 479 void AnimatePageScale(base::TimeTicks monotonic_time); |
479 void AnimateScrollbars(base::TimeTicks monotonic_time); | 480 void AnimateScrollbars(base::TimeTicks monotonic_time); |
480 void AnimateTopControls(base::TimeTicks monotonic_time); | 481 void AnimateTopControls(base::TimeTicks monotonic_time); |
481 | 482 |
482 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( | 483 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 scoped_ptr<OutputSurface> output_surface_; | 538 scoped_ptr<OutputSurface> output_surface_; |
538 scoped_refptr<ContextProvider> offscreen_context_provider_; | 539 scoped_refptr<ContextProvider> offscreen_context_provider_; |
539 | 540 |
540 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- | 541 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- |
541 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). | 542 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). |
542 scoped_ptr<ResourceProvider> resource_provider_; | 543 scoped_ptr<ResourceProvider> resource_provider_; |
543 scoped_ptr<TileManager> tile_manager_; | 544 scoped_ptr<TileManager> tile_manager_; |
544 scoped_ptr<RasterWorkerPool> raster_worker_pool_; | 545 scoped_ptr<RasterWorkerPool> raster_worker_pool_; |
545 scoped_ptr<RasterWorkerPool> direct_raster_worker_pool_; | 546 scoped_ptr<RasterWorkerPool> direct_raster_worker_pool_; |
546 scoped_ptr<ResourcePool> resource_pool_; | 547 scoped_ptr<ResourcePool> resource_pool_; |
| 548 scoped_ptr<ResourcePool> staging_resource_pool_; |
547 scoped_ptr<Renderer> renderer_; | 549 scoped_ptr<Renderer> renderer_; |
548 | 550 |
549 GlobalStateThatImpactsTilePriority global_tile_state_; | 551 GlobalStateThatImpactsTilePriority global_tile_state_; |
550 | 552 |
551 // Tree currently being drawn. | 553 // Tree currently being drawn. |
552 scoped_ptr<LayerTreeImpl> active_tree_; | 554 scoped_ptr<LayerTreeImpl> active_tree_; |
553 | 555 |
554 // In impl-side painting mode, tree with possibly incomplete rasterized | 556 // In impl-side painting mode, tree with possibly incomplete rasterized |
555 // content. May be promoted to active by ActivatePendingTree(). | 557 // content. May be promoted to active by ActivatePendingTree(). |
556 scoped_ptr<LayerTreeImpl> pending_tree_; | 558 scoped_ptr<LayerTreeImpl> pending_tree_; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 int id_; | 657 int id_; |
656 | 658 |
657 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 659 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
658 | 660 |
659 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 661 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
660 }; | 662 }; |
661 | 663 |
662 } // namespace cc | 664 } // namespace cc |
663 | 665 |
664 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 666 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |