Index: content/browser/renderer_host/compositor_impl_android.cc |
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc |
index b6453a6e887128451f8c9600b08034adfdd2e136..74a079b7698f086aec6c72a22949af6b67e4cdec 100644 |
--- a/content/browser/renderer_host/compositor_impl_android.cc |
+++ b/content/browser/renderer_host/compositor_impl_android.cc |
@@ -460,6 +460,8 @@ void CompositorImpl::CreateLayerTreeHost() { |
host_ = cc::LayerTreeHost::CreateSingleThreaded(this, ¶ms); |
DCHECK(!host_->visible()); |
host_->SetRootLayer(root_layer_); |
+ if (surface_id_allocator_) |
+ host_->set_surface_id_namespace(surface_id_allocator_->id_namespace()); |
host_->SetViewportSize(size_); |
host_->set_has_transparent_background(has_transparent_background_); |
host_->SetDeviceScaleFactor(device_scale_factor_); |