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

Unified Diff: cc/trees/layer_tree_host_in_process.cc

Issue 2537683002: cc: Add image decode queue functionality to image manager. (Closed)
Patch Set: update Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host_in_process.cc
diff --git a/cc/trees/layer_tree_host_in_process.cc b/cc/trees/layer_tree_host_in_process.cc
index c79ffeed680b60c0c504384005a2c52f22d1bd15..a5f18ec9da87a2555c0e7fb67b6d523ed63fc212 100644
--- a/cc/trees/layer_tree_host_in_process.cc
+++ b/cc/trees/layer_tree_host_in_process.cc
@@ -119,7 +119,8 @@ LayerTreeHostInProcess::LayerTreeHostInProcess(
did_complete_scale_animation_(false),
id_(s_layer_tree_host_sequence_number.GetNext() + 1),
task_graph_runner_(params->task_graph_runner),
- image_serialization_processor_(params->image_serialization_processor) {
+ image_serialization_processor_(params->image_serialization_processor),
+ image_worker_task_runner_(params->image_worker_task_runner) {
DCHECK(task_graph_runner_);
DCHECK(layer_tree_);
DCHECK_NE(compositor_mode_, CompositorMode::REMOTE);
@@ -442,7 +443,7 @@ LayerTreeHostInProcess::CreateLayerTreeHostImpl(
std::unique_ptr<LayerTreeHostImpl> host_impl = LayerTreeHostImpl::Create(
settings_, client, task_runner_provider_.get(),
rendering_stats_instrumentation_.get(), task_graph_runner_,
- std::move(mutator_host_impl), id_);
+ std::move(mutator_host_impl), id_, std::move(image_worker_task_runner_));
host_impl->SetHasGpuRasterizationTrigger(has_gpu_rasterization_trigger_);
host_impl->SetContentIsSuitableForGpuRasterization(
content_is_suitable_for_gpu_rasterization_);

Powered by Google App Engine
This is Rietveld 408576698