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 9ee229bd760f95dfdaffb42b388c3d9e7236bbfa..f68965caff067d4f2bbdb156da56053b69ba4a67 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -1433,15 +1433,6 @@ bool LayerTreeHostImpl::InitializeRenderer( |
if (!resource_provider) |
return false; |
- if (settings_.impl_side_painting) { |
- tile_manager_ = TileManager::Create(this, |
- resource_provider.get(), |
- settings_.num_raster_threads, |
- settings_.use_color_estimator, |
- rendering_stats_instrumentation_); |
- UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy()); |
- } |
- |
if (output_surface->capabilities().has_parent_compositor) { |
renderer_ = DelegatingRenderer::Create(this, output_surface.get(), |
resource_provider.get()); |
@@ -1459,6 +1450,17 @@ bool LayerTreeHostImpl::InitializeRenderer( |
if (!renderer_) |
return false; |
+ if (settings_.impl_side_painting) { |
+ bool using_map_image = GetRendererCapabilities().using_map_image; |
+ tile_manager_ = TileManager::Create(this, |
+ resource_provider.get(), |
+ settings_.num_raster_threads, |
+ settings_.use_color_estimator, |
+ rendering_stats_instrumentation_, |
+ using_map_image); |
+ UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy()); |
+ } |
+ |
resource_provider_ = resource_provider.Pass(); |
} |