fix: pass IsScreen via parameter instead of sync IPC method (#27774)

This commit is contained in:
Cheng Zhao 2021-02-20 08:28:48 +09:00 committed by GitHub
parent 1e4f67c197
commit a0141f8d6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 115 additions and 75 deletions

View file

@ -610,6 +610,10 @@ void OffScreenRenderWidgetHostView::ProxyViewDestroyed(
Invalidate();
}
bool OffScreenRenderWidgetHostView::IsOffscreen() const {
return true;
}
std::unique_ptr<viz::HostDisplayClient>
OffScreenRenderWidgetHostView::CreateHostDisplayClient(
ui::Compositor* compositor) {