Use null accelerated widget to avoid showing GPU accelerated OSR surface

This commit is contained in:
Heilig Benedek
2018-01-25 14:40:37 +01:00
parent 08f36c1383
commit 290f985571

View File

@@ -303,7 +303,7 @@ OffScreenRenderWidgetHostView::OffScreenRenderWidgetHostView(
new ui::Compositor(context_factory_private->AllocateFrameSinkId(),
content::GetContextFactory(), context_factory_private,
base::ThreadTaskRunnerHandle::Get()));
compositor_->SetAcceleratedWidget(native_window_->GetAcceleratedWidget());
compositor_->SetAcceleratedWidget(gfx::kNullAcceleratedWidget);
compositor_->SetRootLayer(root_layer_.get());
#endif
GetCompositor()->SetDelegate(this);