fix: osr crash on window close (#45573)

This commit is contained in:
Shelley Vohr 2025-02-14 11:01:00 +01:00 committed by GitHub
parent 47dbab3856
commit 2af57c4b6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 48 additions and 17 deletions

View file

@ -262,6 +262,7 @@ class OffScreenRenderWidgetHostView
}
private:
void ReleaseCompositor();
void SetupFrameRate(bool force);
void ResizeRootLayer(bool force);
@ -314,7 +315,7 @@ class OffScreenRenderWidgetHostView
delegated_frame_host_client_;
// depends-on: delegated_frame_host_client_
const std::unique_ptr<content::DelegatedFrameHost> delegated_frame_host_;
std::unique_ptr<content::DelegatedFrameHost> delegated_frame_host_;
std::unique_ptr<input::CursorManager> cursor_manager_;