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 61eceeaf50ccf81d1f922148a756bfa1880abe97..4fddae5a97a25340dcc87f590b582a575a80ad70 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -1875,16 +1875,14 @@ void LayerTreeHostImpl::CreateAndSetTileManager() { |
transfer_buffer_memory_limit_ = |
GetMaxTransferBufferUsageBytes(context_provider); |
- if (use_gpu_rasterization_ && context_provider) { |
+ if (use_gpu_rasterization_) { |
resource_pool_ = |
ResourcePool::Create(resource_provider_.get(), |
GL_TEXTURE_2D, |
resource_provider_->best_texture_format()); |
- raster_worker_pool_ = |
- GpuRasterWorkerPool::Create(proxy_->ImplThreadTaskRunner(), |
- resource_provider_.get(), |
- context_provider); |
+ raster_worker_pool_ = GpuRasterWorkerPool::Create( |
+ proxy_->ImplThreadTaskRunner(), resource_provider_.get()); |
on_demand_task_graph_runner_ = &synchronous_task_graph_runner_; |
} else if (UseZeroCopyTextureUpload()) { |
resource_pool_ = |