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

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: cleanup 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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 bool requires_high_res_to_draw_; 834 bool requires_high_res_to_draw_;
834 bool is_likely_to_require_a_draw_; 835 bool is_likely_to_require_a_draw_;
835 836
836 std::unique_ptr<Viewport> viewport_; 837 std::unique_ptr<Viewport> viewport_;
837 838
838 std::unique_ptr<LayerTreeMutator> mutator_; 839 std::unique_ptr<LayerTreeMutator> mutator_;
839 840
840 std::unique_ptr<PendingTreeDurationHistogramTimer> 841 std::unique_ptr<PendingTreeDurationHistogramTimer>
841 pending_tree_duration_timer_; 842 pending_tree_duration_timer_;
842 843
844 std::unique_ptr<gpu::ContextSupport::ScopedVisibility>
danakj 2016/08/18 21:39:44 can you put these right below the output_surface_?
ericrk 2016/08/19 17:23:19 Done.
845 main_context_client_visibility_;
846 std::unique_ptr<gpu::ContextSupport::ScopedVisibility>
847 worker_context_client_visibility_;
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