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

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

Issue 2541183002: cc: Rename ImageDecodeController to ImageDecodeCache. (Closed)
Patch Set: rename: update Created 4 years 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
« no previous file with comments | « cc/tiles/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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 18 matching lines...) Expand all
29 #include "cc/output/compositor_frame_sink_client.h" 29 #include "cc/output/compositor_frame_sink_client.h"
30 #include "cc/output/context_cache_controller.h" 30 #include "cc/output/context_cache_controller.h"
31 #include "cc/output/managed_memory_policy.h" 31 #include "cc/output/managed_memory_policy.h"
32 #include "cc/quads/render_pass.h" 32 #include "cc/quads/render_pass.h"
33 #include "cc/resources/resource_provider.h" 33 #include "cc/resources/resource_provider.h"
34 #include "cc/resources/ui_resource_client.h" 34 #include "cc/resources/ui_resource_client.h"
35 #include "cc/scheduler/begin_frame_tracker.h" 35 #include "cc/scheduler/begin_frame_tracker.h"
36 #include "cc/scheduler/commit_earlyout_reason.h" 36 #include "cc/scheduler/commit_earlyout_reason.h"
37 #include "cc/scheduler/draw_result.h" 37 #include "cc/scheduler/draw_result.h"
38 #include "cc/scheduler/video_frame_controller.h" 38 #include "cc/scheduler/video_frame_controller.h"
39 #include "cc/tiles/image_decode_controller.h" 39 #include "cc/tiles/image_decode_cache.h"
40 #include "cc/tiles/tile_manager.h" 40 #include "cc/tiles/tile_manager.h"
41 #include "cc/trees/layer_tree_mutator.h" 41 #include "cc/trees/layer_tree_mutator.h"
42 #include "cc/trees/layer_tree_settings.h" 42 #include "cc/trees/layer_tree_settings.h"
43 #include "cc/trees/mutator_host_client.h" 43 #include "cc/trees/mutator_host_client.h"
44 #include "cc/trees/task_runner_provider.h" 44 #include "cc/trees/task_runner_provider.h"
45 #include "ui/gfx/geometry/rect.h" 45 #include "ui/gfx/geometry/rect.h"
46 46
47 namespace gfx { 47 namespace gfx {
48 class ScrollOffset; 48 class ScrollOffset;
49 } 49 }
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 bool use_msaa() const { return use_msaa_; } 397 bool use_msaa() const { return use_msaa_; }
398 398
399 GpuRasterizationStatus gpu_rasterization_status() const { 399 GpuRasterizationStatus gpu_rasterization_status() const {
400 return gpu_rasterization_status_; 400 return gpu_rasterization_status_;
401 } 401 }
402 402
403 bool create_low_res_tiling() const { 403 bool create_low_res_tiling() const {
404 return settings_.create_low_res_tiling && !use_gpu_rasterization_; 404 return settings_.create_low_res_tiling && !use_gpu_rasterization_;
405 } 405 }
406 ResourcePool* resource_pool() { return resource_pool_.get(); } 406 ResourcePool* resource_pool() { return resource_pool_.get(); }
407 ImageDecodeController* image_decode_controller() { 407 ImageDecodeCache* image_decode_cache() { return image_decode_cache_.get(); }
408 return image_decode_controller_.get();
409 }
410 408
411 virtual void WillBeginImplFrame(const BeginFrameArgs& args); 409 virtual void WillBeginImplFrame(const BeginFrameArgs& args);
412 virtual void DidFinishImplFrame(); 410 virtual void DidFinishImplFrame();
413 void DidModifyTilePriorities(); 411 void DidModifyTilePriorities();
414 412
415 LayerTreeImpl* active_tree() { return active_tree_.get(); } 413 LayerTreeImpl* active_tree() { return active_tree_.get(); }
416 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } 414 const LayerTreeImpl* active_tree() const { return active_tree_.get(); }
417 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } 415 LayerTreeImpl* pending_tree() { return pending_tree_.get(); }
418 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } 416 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); }
419 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); } 417 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); }
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 702
705 std::unique_ptr<ResourceProvider> resource_provider_; 703 std::unique_ptr<ResourceProvider> resource_provider_;
706 bool need_update_gpu_rasterization_status_; 704 bool need_update_gpu_rasterization_status_;
707 bool content_is_suitable_for_gpu_rasterization_; 705 bool content_is_suitable_for_gpu_rasterization_;
708 bool has_gpu_rasterization_trigger_; 706 bool has_gpu_rasterization_trigger_;
709 bool use_gpu_rasterization_; 707 bool use_gpu_rasterization_;
710 bool use_msaa_; 708 bool use_msaa_;
711 GpuRasterizationStatus gpu_rasterization_status_; 709 GpuRasterizationStatus gpu_rasterization_status_;
712 std::unique_ptr<RasterBufferProvider> raster_buffer_provider_; 710 std::unique_ptr<RasterBufferProvider> raster_buffer_provider_;
713 std::unique_ptr<ResourcePool> resource_pool_; 711 std::unique_ptr<ResourcePool> resource_pool_;
714 std::unique_ptr<ImageDecodeController> image_decode_controller_; 712 std::unique_ptr<ImageDecodeCache> image_decode_cache_;
715 713
716 GlobalStateThatImpactsTilePriority global_tile_state_; 714 GlobalStateThatImpactsTilePriority global_tile_state_;
717 715
718 // Tree currently being drawn. 716 // Tree currently being drawn.
719 std::unique_ptr<LayerTreeImpl> active_tree_; 717 std::unique_ptr<LayerTreeImpl> active_tree_;
720 718
721 // In impl-side painting mode, tree with possibly incomplete rasterized 719 // In impl-side painting mode, tree with possibly incomplete rasterized
722 // content. May be promoted to active by ActivatePendingTree(). 720 // content. May be promoted to active by ActivatePendingTree().
723 std::unique_ptr<LayerTreeImpl> pending_tree_; 721 std::unique_ptr<LayerTreeImpl> pending_tree_;
724 722
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 818
821 std::unique_ptr<PendingTreeDurationHistogramTimer> 819 std::unique_ptr<PendingTreeDurationHistogramTimer>
822 pending_tree_duration_timer_; 820 pending_tree_duration_timer_;
823 821
824 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 822 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
825 }; 823 };
826 824
827 } // namespace cc 825 } // namespace cc
828 826
829 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 827 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/tiles/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