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 a69a5de12f
commit b22734ccc1

View File

@@ -358,7 +358,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);