| Index: cc/trees/layer_tree_host_impl.cc
|
| diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
|
| index c602b9bfa89c963069ab94d4c3dcaaa3c4a9420b..658d7f4187e6f8e61b86687a924ed92736e2a03f 100644
|
| --- a/cc/trees/layer_tree_host_impl.cc
|
| +++ b/cc/trees/layer_tree_host_impl.cc
|
| @@ -190,10 +190,12 @@ std::unique_ptr<LayerTreeHostImpl> LayerTreeHostImpl::Create(
|
| RenderingStatsInstrumentation* rendering_stats_instrumentation,
|
| TaskGraphRunner* task_graph_runner,
|
| std::unique_ptr<MutatorHost> mutator_host,
|
| - int id) {
|
| + int id,
|
| + scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner) {
|
| return base::WrapUnique(new LayerTreeHostImpl(
|
| settings, client, task_runner_provider, rendering_stats_instrumentation,
|
| - task_graph_runner, std::move(mutator_host), id));
|
| + task_graph_runner, std::move(mutator_host), id,
|
| + std::move(image_worker_task_runner)));
|
| }
|
|
|
| LayerTreeHostImpl::LayerTreeHostImpl(
|
| @@ -203,7 +205,8 @@ LayerTreeHostImpl::LayerTreeHostImpl(
|
| RenderingStatsInstrumentation* rendering_stats_instrumentation,
|
| TaskGraphRunner* task_graph_runner,
|
| std::unique_ptr<MutatorHost> mutator_host,
|
| - int id)
|
| + int id,
|
| + scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner)
|
| : client_(client),
|
| task_runner_provider_(task_runner_provider),
|
| current_begin_frame_tracker_(BEGINFRAMETRACKER_FROM_HERE),
|
| @@ -229,6 +232,7 @@ LayerTreeHostImpl::LayerTreeHostImpl(
|
| // task_runner_provider_.
|
| tile_manager_(this,
|
| GetTaskRunner(),
|
| + std::move(image_worker_task_runner),
|
| is_synchronous_single_threaded_
|
| ? std::numeric_limits<size_t>::max()
|
| : settings.scheduled_raster_task_limit,
|
| @@ -1846,6 +1850,7 @@ void LayerTreeHostImpl::WillBeginImplFrame(const BeginFrameArgs& args) {
|
|
|
| void LayerTreeHostImpl::DidFinishImplFrame() {
|
| current_begin_frame_tracker_.Finish();
|
| + tile_manager_.NotifyFrameFinished();
|
| }
|
|
|
| void LayerTreeHostImpl::UpdateViewportContainerSizes() {
|
|
|