Bug 238948

Summary: [MSE] Improve SourceBuffer memory cost reporting
Product: WebKit Reporter: Enrique Ocaña <eocanha>
Component: MediaAssignee: Enrique Ocaña <eocanha>
Status: RESOLVED FIXED    
Severity: Normal CC: calvaris, cdumez, eric.carlson, esprehn+autocc, ews-watchlist, glenn, jer.noble, kondapallykalyan, philipj, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Enrique Ocaña 2022-04-07 11:12:23 PDT
Properly implementing the memoryCost() API in SourceBuffer would improve memory awareness when garbage collecting.
Comment 1 Enrique Ocaña 2022-04-07 11:25:41 PDT
Created attachment 456950 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2022-04-14 11:13:12 PDT
<rdar://problem/91765758>
Comment 3 Enrique Ocaña 2022-04-19 06:41:28 PDT
Created attachment 457884 [details]
Patch
Comment 4 Enrique Ocaña 2022-04-19 06:44:50 PDT
This latest patch returns m_extraMemoryCost instead of m_reportedExtraMemoryCost (which was a mistake) in SourceBuffer::memoryCost().
Comment 5 EWS 2022-04-22 04:42:08 PDT
Committed r293216 (249885@main): <https://commits.webkit.org/249885@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 457884 [details].