Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 296453009: cc: Get rid of rasterizer delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed redundant get Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_tile_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 active_animation_controllers() const { 479 active_animation_controllers() const {
480 return animation_registrar_->active_animation_controllers(); 480 return animation_registrar_->active_animation_controllers();
481 } 481 }
482 482
483 bool manage_tiles_needed() const { return tile_priorities_dirty_; } 483 bool manage_tiles_needed() const { return tile_priorities_dirty_; }
484 484
485 LayerTreeHostImplClient* client_; 485 LayerTreeHostImplClient* client_;
486 Proxy* proxy_; 486 Proxy* proxy_;
487 487
488 private: 488 private:
489 void CreateAndSetRenderer(OutputSurface* output_surface, 489 void CreateAndSetRenderer();
490 ResourceProvider* resource_provider); 490 void CreateAndSetTileManager();
491 void CreateAndSetTileManager(ResourceProvider* resource_provider, 491 void DestroyTileManager();
492 ContextProvider* context_provider,
493 bool use_zero_copy,
494 bool use_one_copy,
495 bool allow_rasterize_on_demand);
496 void ReleaseTreeResources(); 492 void ReleaseTreeResources();
497 void EnforceZeroBudget(bool zero_budget); 493 void EnforceZeroBudget(bool zero_budget);
498 494
495 bool UseZeroCopyTextureUpload() const;
496 bool UseOneCopyTextureUpload() const;
497
499 void ScrollViewportBy(gfx::Vector2dF scroll_delta); 498 void ScrollViewportBy(gfx::Vector2dF scroll_delta);
500 void AnimatePageScale(base::TimeTicks monotonic_time); 499 void AnimatePageScale(base::TimeTicks monotonic_time);
501 void AnimateScrollbars(base::TimeTicks monotonic_time); 500 void AnimateScrollbars(base::TimeTicks monotonic_time);
502 void AnimateTopControls(base::TimeTicks monotonic_time); 501 void AnimateTopControls(base::TimeTicks monotonic_time);
503 502
504 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( 503 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta(
505 LayerImpl* layer_impl, 504 LayerImpl* layer_impl,
506 float scale_from_viewport_to_screen_space, 505 float scale_from_viewport_to_screen_space,
507 const gfx::PointF& viewport_point, 506 const gfx::PointF& viewport_point,
508 const gfx::Vector2dF& viewport_delta); 507 const gfx::Vector2dF& viewport_delta);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 556
558 scoped_ptr<OutputSurface> output_surface_; 557 scoped_ptr<OutputSurface> output_surface_;
559 scoped_refptr<ContextProvider> offscreen_context_provider_; 558 scoped_refptr<ContextProvider> offscreen_context_provider_;
560 559
561 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- 560 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile-
562 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). 561 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice().
563 scoped_ptr<ResourceProvider> resource_provider_; 562 scoped_ptr<ResourceProvider> resource_provider_;
564 scoped_ptr<TileManager> tile_manager_; 563 scoped_ptr<TileManager> tile_manager_;
565 bool use_gpu_rasterization_; 564 bool use_gpu_rasterization_;
566 scoped_ptr<RasterWorkerPool> raster_worker_pool_; 565 scoped_ptr<RasterWorkerPool> raster_worker_pool_;
567 scoped_ptr<RasterWorkerPool> direct_raster_worker_pool_;
568 scoped_ptr<ResourcePool> resource_pool_; 566 scoped_ptr<ResourcePool> resource_pool_;
569 scoped_ptr<ResourcePool> staging_resource_pool_; 567 scoped_ptr<ResourcePool> staging_resource_pool_;
570 scoped_ptr<Renderer> renderer_; 568 scoped_ptr<Renderer> renderer_;
571 569
572 GlobalStateThatImpactsTilePriority global_tile_state_; 570 GlobalStateThatImpactsTilePriority global_tile_state_;
573 571
574 // Tree currently being drawn. 572 // Tree currently being drawn.
575 scoped_ptr<LayerTreeImpl> active_tree_; 573 scoped_ptr<LayerTreeImpl> active_tree_;
576 574
577 // In impl-side painting mode, tree with possibly incomplete rasterized 575 // In impl-side painting mode, tree with possibly incomplete rasterized
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 681 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
684 682
685 size_t transfer_buffer_memory_limit_; 683 size_t transfer_buffer_memory_limit_;
686 684
687 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 685 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
688 }; 686 };
689 687
690 } // namespace cc 688 } // namespace cc
691 689
692 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 690 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_tile_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698