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

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

Issue 2631453002: Revert of cc: Add image decode queue functionality to image manager. (Closed)
Patch Set: Created 3 years, 11 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/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_host_in_process.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_IN_PROCESS_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_
6 #define CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 class CC_EXPORT LayerTreeHostInProcess : public LayerTreeHost { 67 class CC_EXPORT LayerTreeHostInProcess : public LayerTreeHost {
68 public: 68 public:
69 // TODO(sad): InitParams should be a movable type so that it can be 69 // TODO(sad): InitParams should be a movable type so that it can be
70 // std::move()d to the Create* functions. 70 // std::move()d to the Create* functions.
71 struct CC_EXPORT InitParams { 71 struct CC_EXPORT InitParams {
72 LayerTreeHostClient* client = nullptr; 72 LayerTreeHostClient* client = nullptr;
73 TaskGraphRunner* task_graph_runner = nullptr; 73 TaskGraphRunner* task_graph_runner = nullptr;
74 LayerTreeSettings const* settings = nullptr; 74 LayerTreeSettings const* settings = nullptr;
75 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner; 75 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner;
76 ImageSerializationProcessor* image_serialization_processor = nullptr; 76 ImageSerializationProcessor* image_serialization_processor = nullptr;
77 MutatorHost* mutator_host = nullptr; 77 MutatorHost* mutator_host;
78 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner;
79 78
80 InitParams(); 79 InitParams();
81 ~InitParams(); 80 ~InitParams();
82 }; 81 };
83 82
84 static std::unique_ptr<LayerTreeHostInProcess> CreateThreaded( 83 static std::unique_ptr<LayerTreeHostInProcess> CreateThreaded(
85 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, 84 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner,
86 InitParams* params); 85 InitParams* params);
87 86
88 static std::unique_ptr<LayerTreeHostInProcess> CreateSingleThreaded( 87 static std::unique_ptr<LayerTreeHostInProcess> CreateSingleThreaded(
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 310
312 // The state that was expected to be reflected from the main thread during 311 // The state that was expected to be reflected from the main thread during
313 // BeginMainFrame, but could not be done. The client provides these deltas 312 // BeginMainFrame, but could not be done. The client provides these deltas
314 // to use during the commit instead of applying them at that point because 313 // to use during the commit instead of applying them at that point because
315 // its necessary for these deltas to be applied *after* PropertyTrees are 314 // its necessary for these deltas to be applied *after* PropertyTrees are
316 // built/updated on the main thread. 315 // built/updated on the main thread.
317 // TODO(khushalsagar): Investigate removing this after SPV2, since then we 316 // TODO(khushalsagar): Investigate removing this after SPV2, since then we
318 // should get these PropertyTrees directly from blink? 317 // should get these PropertyTrees directly from blink?
319 std::unique_ptr<ReflectedMainFrameState> reflected_main_frame_state_; 318 std::unique_ptr<ReflectedMainFrameState> reflected_main_frame_state_;
320 319
321 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_;
322
323 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostInProcess); 320 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostInProcess);
324 }; 321 };
325 322
326 } // namespace cc 323 } // namespace cc
327 324
328 #endif // CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ 325 #endif // CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_host_in_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698