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

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

Issue 2714863005: content: Add switch to enable checker-imaging. (Closed)
Patch Set: comment Created 3 years, 9 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/base/switches.cc ('k') | content/browser/renderer_host/render_process_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_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 public NON_EXPORTED_BASE(MutatorHostClient) { 66 public NON_EXPORTED_BASE(MutatorHostClient) {
67 public: 67 public:
68 // TODO(sad): InitParams should be a movable type so that it can be 68 // TODO(sad): InitParams should be a movable type so that it can be
69 // std::move()d to the Create* functions. 69 // std::move()d to the Create* functions.
70 struct CC_EXPORT InitParams { 70 struct CC_EXPORT InitParams {
71 LayerTreeHostClient* client = nullptr; 71 LayerTreeHostClient* client = nullptr;
72 TaskGraphRunner* task_graph_runner = nullptr; 72 TaskGraphRunner* task_graph_runner = nullptr;
73 LayerTreeSettings const* settings = nullptr; 73 LayerTreeSettings const* settings = nullptr;
74 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner; 74 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner;
75 MutatorHost* mutator_host = nullptr; 75 MutatorHost* mutator_host = nullptr;
76
77 // The image worker task runner is used to schedule image decodes. The
78 // compositor thread may make sync calls to this thread, analogous to the
79 // raster worker threads.
76 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner; 80 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner;
77 81
78 InitParams(); 82 InitParams();
79 ~InitParams(); 83 ~InitParams();
80 }; 84 };
81 85
82 static std::unique_ptr<LayerTreeHost> CreateThreaded( 86 static std::unique_ptr<LayerTreeHost> CreateThreaded(
83 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, 87 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner,
84 InitParams* params); 88 InitParams* params);
85 89
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 bool in_paint_layer_contents_ = false; 602 bool in_paint_layer_contents_ = false;
599 603
600 MutatorHost* mutator_host_; 604 MutatorHost* mutator_host_;
601 605
602 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 606 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
603 }; 607 };
604 608
605 } // namespace cc 609 } // namespace cc
606 610
607 #endif // CC_TREES_LAYER_TREE_HOST_H_ 611 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/base/switches.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698