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

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

Issue 468983002: Still produce quad when tile OOM and on demand raster is not allowed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 const AnimationRegistrar::AnimationControllerMap& 509 const AnimationRegistrar::AnimationControllerMap&
510 active_animation_controllers() const { 510 active_animation_controllers() const {
511 return animation_registrar_->active_animation_controllers(); 511 return animation_registrar_->active_animation_controllers();
512 } 512 }
513 513
514 bool manage_tiles_needed() const { return tile_priorities_dirty_; } 514 bool manage_tiles_needed() const { return tile_priorities_dirty_; }
515 515
516 LayerTreeHostImplClient* client_; 516 LayerTreeHostImplClient* client_;
517 Proxy* proxy_; 517 Proxy* proxy_;
518 518
519 scoped_ptr<TileManager> tile_manager_;
520
519 private: 521 private:
520 void CreateAndSetRenderer(); 522 void CreateAndSetRenderer();
521 void CreateAndSetTileManager(); 523 void CreateAndSetTileManager();
522 void DestroyTileManager(); 524 void DestroyTileManager();
523 void ReleaseTreeResources(); 525 void ReleaseTreeResources();
524 void EnforceZeroBudget(bool zero_budget); 526 void EnforceZeroBudget(bool zero_budget);
525 527
526 bool UsePendingTreeForSync() const; 528 bool UsePendingTreeForSync() const;
527 bool UseZeroCopyTextureUpload() const; 529 bool UseZeroCopyTextureUpload() const;
528 bool UseOneCopyTextureUpload() const; 530 bool UseOneCopyTextureUpload() const;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 // from this when they are touched by a create or destroy from the UI resource 586 // from this when they are touched by a create or destroy from the UI resource
585 // request queue. 587 // request queue.
586 std::set<UIResourceId> evicted_ui_resources_; 588 std::set<UIResourceId> evicted_ui_resources_;
587 589
588 scoped_ptr<OutputSurface> output_surface_; 590 scoped_ptr<OutputSurface> output_surface_;
589 scoped_refptr<ContextProvider> offscreen_context_provider_; 591 scoped_refptr<ContextProvider> offscreen_context_provider_;
590 592
591 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- 593 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile-
592 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). 594 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice().
593 scoped_ptr<ResourceProvider> resource_provider_; 595 scoped_ptr<ResourceProvider> resource_provider_;
594 scoped_ptr<TileManager> tile_manager_;
595 bool use_gpu_rasterization_; 596 bool use_gpu_rasterization_;
596 scoped_ptr<RasterWorkerPool> raster_worker_pool_; 597 scoped_ptr<RasterWorkerPool> raster_worker_pool_;
597 scoped_ptr<ResourcePool> resource_pool_; 598 scoped_ptr<ResourcePool> resource_pool_;
598 scoped_ptr<ResourcePool> staging_resource_pool_; 599 scoped_ptr<ResourcePool> staging_resource_pool_;
599 scoped_ptr<Renderer> renderer_; 600 scoped_ptr<Renderer> renderer_;
600 601
601 TaskGraphRunner synchronous_task_graph_runner_; 602 TaskGraphRunner synchronous_task_graph_runner_;
602 TaskGraphRunner* on_demand_task_graph_runner_; 603 TaskGraphRunner* on_demand_task_graph_runner_;
603 NamespaceToken on_demand_task_namespace_; 604 NamespaceToken on_demand_task_namespace_;
604 605
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 718
718 std::vector<PictureLayerImpl*> picture_layers_; 719 std::vector<PictureLayerImpl*> picture_layers_;
719 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; 720 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_;
720 721
721 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 722 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
722 }; 723 };
723 724
724 } // namespace cc 725 } // namespace cc
725 726
726 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 727 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« cc/layers/picture_layer_impl_unittest.cc ('K') | « cc/test/fake_layer_tree_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698