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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 active_animation_controllers() const { | 476 active_animation_controllers() const { |
477 return animation_registrar_->active_animation_controllers(); | 477 return animation_registrar_->active_animation_controllers(); |
478 } | 478 } |
479 | 479 |
480 bool manage_tiles_needed() const { return tile_priorities_dirty_; } | 480 bool manage_tiles_needed() const { return tile_priorities_dirty_; } |
481 | 481 |
482 LayerTreeHostImplClient* client_; | 482 LayerTreeHostImplClient* client_; |
483 Proxy* proxy_; | 483 Proxy* proxy_; |
484 | 484 |
485 private: | 485 private: |
486 void CreateAndSetRenderer( | 486 void CreateAndSetRenderer(bool skip_gl_renderer); |
487 OutputSurface* output_surface, | 487 void CreateAndSetTileManager(ContextProvider* context_provider); |
488 ResourceProvider* resource_provider, | 488 void DestroyTileManager(); |
489 bool skip_gl_renderer); | |
490 void CreateAndSetTileManager(ResourceProvider* resource_provider, | |
491 ContextProvider* context_provider, | |
492 bool use_zero_copy, | |
493 bool use_one_copy, | |
494 bool allow_rasterize_on_demand); | |
495 void ReleaseTreeResources(); | 489 void ReleaseTreeResources(); |
496 void EnforceZeroBudget(bool zero_budget); | 490 void EnforceZeroBudget(bool zero_budget); |
497 | 491 |
498 void ScrollViewportBy(gfx::Vector2dF scroll_delta); | 492 void ScrollViewportBy(gfx::Vector2dF scroll_delta); |
499 void AnimatePageScale(base::TimeTicks monotonic_time); | 493 void AnimatePageScale(base::TimeTicks monotonic_time); |
500 void AnimateScrollbars(base::TimeTicks monotonic_time); | 494 void AnimateScrollbars(base::TimeTicks monotonic_time); |
501 void AnimateTopControls(base::TimeTicks monotonic_time); | 495 void AnimateTopControls(base::TimeTicks monotonic_time); |
502 | 496 |
503 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( | 497 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( |
504 LayerImpl* layer_impl, | 498 LayerImpl* layer_impl, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 | 550 |
557 scoped_ptr<OutputSurface> output_surface_; | 551 scoped_ptr<OutputSurface> output_surface_; |
558 scoped_refptr<ContextProvider> offscreen_context_provider_; | 552 scoped_refptr<ContextProvider> offscreen_context_provider_; |
559 | 553 |
560 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- | 554 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- |
561 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). | 555 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). |
562 scoped_ptr<ResourceProvider> resource_provider_; | 556 scoped_ptr<ResourceProvider> resource_provider_; |
563 scoped_ptr<TileManager> tile_manager_; | 557 scoped_ptr<TileManager> tile_manager_; |
564 bool use_gpu_rasterization_; | 558 bool use_gpu_rasterization_; |
565 scoped_ptr<RasterWorkerPool> raster_worker_pool_; | 559 scoped_ptr<RasterWorkerPool> raster_worker_pool_; |
566 scoped_ptr<RasterWorkerPool> direct_raster_worker_pool_; | |
567 scoped_ptr<ResourcePool> resource_pool_; | 560 scoped_ptr<ResourcePool> resource_pool_; |
568 scoped_ptr<ResourcePool> staging_resource_pool_; | 561 scoped_ptr<ResourcePool> staging_resource_pool_; |
569 scoped_ptr<Renderer> renderer_; | 562 scoped_ptr<Renderer> renderer_; |
570 | 563 |
571 GlobalStateThatImpactsTilePriority global_tile_state_; | 564 GlobalStateThatImpactsTilePriority global_tile_state_; |
572 | 565 |
573 // Tree currently being drawn. | 566 // Tree currently being drawn. |
574 scoped_ptr<LayerTreeImpl> active_tree_; | 567 scoped_ptr<LayerTreeImpl> active_tree_; |
575 | 568 |
576 // In impl-side painting mode, tree with possibly incomplete rasterized | 569 // In impl-side painting mode, tree with possibly incomplete rasterized |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 675 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
683 | 676 |
684 size_t transfer_buffer_memory_limit_; | 677 size_t transfer_buffer_memory_limit_; |
685 | 678 |
686 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 679 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
687 }; | 680 }; |
688 | 681 |
689 } // namespace cc | 682 } // namespace cc |
690 | 683 |
691 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 684 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |