fix: use RenderViewReady to call InstallTransparency (#24390)

this fixes a crash with transparent OSR when GPU acceleration is
disabled
This commit is contained in:
Andy Dill 2020-07-06 11:57:14 -07:00 committed by GitHub
parent 99079c3bc7
commit cf74ee3d83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -222,7 +222,6 @@ OffScreenRenderWidgetHostView::OffScreenRenderWidgetHostView(
ResizeRootLayer(false);
render_widget_host_->SetView(this);
InstallTransparency();
if (content::GpuDataManager::GetInstance()->HardwareAccelerationEnabled()) {
video_consumer_ = std::make_unique<OffScreenVideoConsumer>(