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

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

Issue 2194013002: cc: Delete the Renderer base class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dcheck-delegating
Patch Set: delete-renderer-base-class: rebase Created 4 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
« no previous file with comments | « cc/test/test_delegating_output_surface.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>
11 #include <memory> 11 #include <memory>
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 #include <unordered_map> 14 #include <unordered_map>
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/callback.h" 17 #include "base/callback.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/time/time.h" 19 #include "base/time/time.h"
20 #include "cc/animation/layer_tree_mutator.h" 20 #include "cc/animation/layer_tree_mutator.h"
21 #include "cc/base/cc_export.h" 21 #include "cc/base/cc_export.h"
22 #include "cc/base/synced_property.h" 22 #include "cc/base/synced_property.h"
23 #include "cc/debug/micro_benchmark_controller_impl.h" 23 #include "cc/debug/micro_benchmark_controller_impl.h"
24 #include "cc/input/input_handler.h" 24 #include "cc/input/input_handler.h"
25 #include "cc/input/scrollbar_animation_controller.h" 25 #include "cc/input/scrollbar_animation_controller.h"
26 #include "cc/input/top_controls_manager_client.h" 26 #include "cc/input/top_controls_manager_client.h"
27 #include "cc/layers/layer_collections.h" 27 #include "cc/layers/layer_collections.h"
28 #include "cc/layers/render_pass_sink.h" 28 #include "cc/layers/render_pass_sink.h"
29 #include "cc/output/begin_frame_args.h" 29 #include "cc/output/begin_frame_args.h"
30 #include "cc/output/delegating_renderer.h"
30 #include "cc/output/managed_memory_policy.h" 31 #include "cc/output/managed_memory_policy.h"
31 #include "cc/output/output_surface_client.h" 32 #include "cc/output/output_surface_client.h"
32 #include "cc/output/renderer.h"
33 #include "cc/quads/render_pass.h" 33 #include "cc/quads/render_pass.h"
34 #include "cc/resources/resource_provider.h" 34 #include "cc/resources/resource_provider.h"
35 #include "cc/resources/ui_resource_client.h" 35 #include "cc/resources/ui_resource_client.h"
36 #include "cc/scheduler/begin_frame_tracker.h" 36 #include "cc/scheduler/begin_frame_tracker.h"
37 #include "cc/scheduler/commit_earlyout_reason.h" 37 #include "cc/scheduler/commit_earlyout_reason.h"
38 #include "cc/scheduler/draw_result.h" 38 #include "cc/scheduler/draw_result.h"
39 #include "cc/scheduler/video_frame_controller.h" 39 #include "cc/scheduler/video_frame_controller.h"
40 #include "cc/tiles/image_decode_controller.h" 40 #include "cc/tiles/image_decode_controller.h"
41 #include "cc/tiles/tile_manager.h" 41 #include "cc/tiles/tile_manager.h"
42 #include "cc/trees/layer_tree_settings.h" 42 #include "cc/trees/layer_tree_settings.h"
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 bool use_msaa() const { return use_msaa_; } 417 bool use_msaa() const { return use_msaa_; }
418 418
419 GpuRasterizationStatus gpu_rasterization_status() const { 419 GpuRasterizationStatus gpu_rasterization_status() const {
420 return gpu_rasterization_status_; 420 return gpu_rasterization_status_;
421 } 421 }
422 422
423 bool create_low_res_tiling() const { 423 bool create_low_res_tiling() const {
424 return settings_.create_low_res_tiling && !use_gpu_rasterization_; 424 return settings_.create_low_res_tiling && !use_gpu_rasterization_;
425 } 425 }
426 ResourcePool* resource_pool() { return resource_pool_.get(); } 426 ResourcePool* resource_pool() { return resource_pool_.get(); }
427 Renderer* renderer() { return renderer_.get(); } 427 DelegatingRenderer* renderer() { return renderer_.get(); }
428 ImageDecodeController* image_decode_controller() { 428 ImageDecodeController* image_decode_controller() {
429 return image_decode_controller_.get(); 429 return image_decode_controller_.get();
430 } 430 }
431 const RendererCapabilitiesImpl& GetRendererCapabilities() const; 431 const RendererCapabilitiesImpl& GetRendererCapabilities() const;
432 432
433 bool SwapBuffers(const FrameData& frame); 433 bool SwapBuffers(const FrameData& frame);
434 virtual void WillBeginImplFrame(const BeginFrameArgs& args); 434 virtual void WillBeginImplFrame(const BeginFrameArgs& args);
435 virtual void DidFinishImplFrame(); 435 virtual void DidFinishImplFrame();
436 void DidModifyTilePriorities(); 436 void DidModifyTilePriorities();
437 437
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 std::unique_ptr<ResourceProvider> resource_provider_; 729 std::unique_ptr<ResourceProvider> resource_provider_;
730 bool content_is_suitable_for_gpu_rasterization_; 730 bool content_is_suitable_for_gpu_rasterization_;
731 bool has_gpu_rasterization_trigger_; 731 bool has_gpu_rasterization_trigger_;
732 bool use_gpu_rasterization_; 732 bool use_gpu_rasterization_;
733 bool use_msaa_; 733 bool use_msaa_;
734 GpuRasterizationStatus gpu_rasterization_status_; 734 GpuRasterizationStatus gpu_rasterization_status_;
735 bool tree_resources_for_gpu_rasterization_dirty_; 735 bool tree_resources_for_gpu_rasterization_dirty_;
736 std::unique_ptr<RasterBufferProvider> raster_buffer_provider_; 736 std::unique_ptr<RasterBufferProvider> raster_buffer_provider_;
737 std::unique_ptr<TileTaskManager> tile_task_manager_; 737 std::unique_ptr<TileTaskManager> tile_task_manager_;
738 std::unique_ptr<ResourcePool> resource_pool_; 738 std::unique_ptr<ResourcePool> resource_pool_;
739 std::unique_ptr<Renderer> renderer_; 739 std::unique_ptr<DelegatingRenderer> renderer_;
740 std::unique_ptr<ImageDecodeController> image_decode_controller_; 740 std::unique_ptr<ImageDecodeController> image_decode_controller_;
741 741
742 GlobalStateThatImpactsTilePriority global_tile_state_; 742 GlobalStateThatImpactsTilePriority global_tile_state_;
743 743
744 // Tree currently being drawn. 744 // Tree currently being drawn.
745 std::unique_ptr<LayerTreeImpl> active_tree_; 745 std::unique_ptr<LayerTreeImpl> active_tree_;
746 746
747 // In impl-side painting mode, tree with possibly incomplete rasterized 747 // In impl-side painting mode, tree with possibly incomplete rasterized
748 // content. May be promoted to active by ActivatePendingTree(). 748 // content. May be promoted to active by ActivatePendingTree().
749 std::unique_ptr<LayerTreeImpl> pending_tree_; 749 std::unique_ptr<LayerTreeImpl> pending_tree_;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 844
845 std::unique_ptr<PendingTreeDurationHistogramTimer> 845 std::unique_ptr<PendingTreeDurationHistogramTimer>
846 pending_tree_duration_timer_; 846 pending_tree_duration_timer_;
847 847
848 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 848 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
849 }; 849 };
850 850
851 } // namespace cc 851 } // namespace cc
852 852
853 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 853 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/test_delegating_output_surface.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698