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

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

Issue 2252163003: Update Context Client Visibility to use Scoped Pattern (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix webview Created 4 years, 3 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_in_process_context_provider.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 24 matching lines...) Expand all
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"
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 "gpu/command_buffer/client/context_support.h"
45 #include "ui/gfx/geometry/rect.h" 46 #include "ui/gfx/geometry/rect.h"
46 47
47 namespace gfx { 48 namespace gfx {
48 class ScrollOffset; 49 class ScrollOffset;
49 } 50 }
50 51
51 namespace cc { 52 namespace cc {
52 53
53 class AnimationEvents; 54 class AnimationEvents;
54 class AnimationHost; 55 class AnimationHost;
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>; 716 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>;
716 UIResourceMap ui_resource_map_; 717 UIResourceMap ui_resource_map_;
717 718
718 // Resources that were evicted by EvictAllUIResources. Resources are removed 719 // Resources that were evicted by EvictAllUIResources. Resources are removed
719 // from this when they are touched by a create or destroy from the UI resource 720 // from this when they are touched by a create or destroy from the UI resource
720 // request queue. 721 // request queue.
721 std::set<UIResourceId> evicted_ui_resources_; 722 std::set<UIResourceId> evicted_ui_resources_;
722 723
723 OutputSurface* output_surface_; 724 OutputSurface* output_surface_;
724 725
726 std::unique_ptr<gpu::ContextSupport::ScopedVisibility>
727 main_context_client_visibility_;
728 std::unique_ptr<gpu::ContextSupport::ScopedVisibility>
729 worker_context_client_visibility_;
730
725 std::unique_ptr<ResourceProvider> resource_provider_; 731 std::unique_ptr<ResourceProvider> resource_provider_;
726 bool need_update_gpu_rasterization_status_; 732 bool need_update_gpu_rasterization_status_;
727 bool content_is_suitable_for_gpu_rasterization_; 733 bool content_is_suitable_for_gpu_rasterization_;
728 bool has_gpu_rasterization_trigger_; 734 bool has_gpu_rasterization_trigger_;
729 bool use_gpu_rasterization_; 735 bool use_gpu_rasterization_;
730 bool use_msaa_; 736 bool use_msaa_;
731 GpuRasterizationStatus gpu_rasterization_status_; 737 GpuRasterizationStatus gpu_rasterization_status_;
732 std::unique_ptr<RasterBufferProvider> raster_buffer_provider_; 738 std::unique_ptr<RasterBufferProvider> raster_buffer_provider_;
733 std::unique_ptr<TileTaskManager> tile_task_manager_; 739 std::unique_ptr<TileTaskManager> tile_task_manager_;
734 std::unique_ptr<ResourcePool> resource_pool_; 740 std::unique_ptr<ResourcePool> resource_pool_;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 846
841 std::unique_ptr<PendingTreeDurationHistogramTimer> 847 std::unique_ptr<PendingTreeDurationHistogramTimer>
842 pending_tree_duration_timer_; 848 pending_tree_duration_timer_;
843 849
844 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 850 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
845 }; 851 };
846 852
847 } // namespace cc 853 } // namespace cc
848 854
849 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 855 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/test_in_process_context_provider.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698