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 b9c0bab8f1
commit 17d85318c3

View file

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