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

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: feedback 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
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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>; 715 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>;
715 UIResourceMap ui_resource_map_; 716 UIResourceMap ui_resource_map_;
716 717
717 // Resources that were evicted by EvictAllUIResources. Resources are removed 718 // Resources that were evicted by EvictAllUIResources. Resources are removed
718 // from this when they are touched by a create or destroy from the UI resource 719 // from this when they are touched by a create or destroy from the UI resource
719 // request queue. 720 // request queue.
720 std::set<UIResourceId> evicted_ui_resources_; 721 std::set<UIResourceId> evicted_ui_resources_;
721 722
722 OutputSurface* output_surface_; 723 OutputSurface* output_surface_;
723 724
725 std::unique_ptr<gpu::ContextSupport::ScopedVisibility>
726 main_context_client_visibility_;
727 std::unique_ptr<gpu::ContextSupport::ScopedVisibility>
728 worker_context_client_visibility_;
729
724 std::unique_ptr<ResourceProvider> resource_provider_; 730 std::unique_ptr<ResourceProvider> resource_provider_;
725 bool need_update_gpu_rasterization_status_; 731 bool need_update_gpu_rasterization_status_;
726 bool content_is_suitable_for_gpu_rasterization_; 732 bool content_is_suitable_for_gpu_rasterization_;
727 bool has_gpu_rasterization_trigger_; 733 bool has_gpu_rasterization_trigger_;
728 bool use_gpu_rasterization_; 734 bool use_gpu_rasterization_;
729 bool use_msaa_; 735 bool use_msaa_;
730 GpuRasterizationStatus gpu_rasterization_status_; 736 GpuRasterizationStatus gpu_rasterization_status_;
731 std::unique_ptr<RasterBufferProvider> raster_buffer_provider_; 737 std::unique_ptr<RasterBufferProvider> raster_buffer_provider_;
732 std::unique_ptr<TileTaskManager> tile_task_manager_; 738 std::unique_ptr<TileTaskManager> tile_task_manager_;
733 std::unique_ptr<ResourcePool> resource_pool_; 739 std::unique_ptr<ResourcePool> resource_pool_;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 845
840 std::unique_ptr<PendingTreeDurationHistogramTimer> 846 std::unique_ptr<PendingTreeDurationHistogramTimer>
841 pending_tree_duration_timer_; 847 pending_tree_duration_timer_;
842 848
843 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 849 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
844 }; 850 };
845 851
846 } // namespace cc 852 } // namespace cc
847 853
848 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 854 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698