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