osr: Implement InvalidateLocalSurfaceIdOnEviction (fixes issue #2483)

This fixes an empty-rendering issue when the view is shown after being
evicted.
This commit is contained in:
Mathieu Lafon
2021-09-22 11:09:38 +00:00
committed by Marshall Greenblatt
parent 28599ae1a5
commit 6dad2c45ee
2 changed files with 8 additions and 5 deletions

View File

@@ -114,7 +114,9 @@ class CefDelegatedFrameHostClient : public content::DelegatedFrameHostClient {
return view_->render_widget_host()->CollectSurfaceIdsForEviction();
}
void InvalidateLocalSurfaceIdOnEviction() override {}
void InvalidateLocalSurfaceIdOnEviction() override {
view_->InvalidateLocalSurfaceId();
}
bool ShouldShowStaleContentOnEviction() override { return false; }