Bug 292762

Summary: Update the cached image encodedDataStatus only when the encoded data is incrementally updated
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: ImagesAssignee: Said Abou-Hallawa <sabouhallawa>
Status: RESOLVED FIXED    
Severity: Normal CC: sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=193511

Said Abou-Hallawa
Reported 2025-05-08 23:20:56 PDT
Currently the BitmapImageDescriptor keeps calling CGImageSourceGetStatus() every time any of its metadata is requested before its encodedDataStatus reaches the status of EncodedDataStatus::SizeAvailable. In fact CGImageSourceGetStatus() can be called hundreds of times per image. The goal of BitmapImageDescriptor is cache the image metadata as long as the encoded data has not changed. So ideally CGImageSourceGetStatus() should only be called as many times as the data is updated.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-05-08 23:21:20 PDT
Said Abou-Hallawa
Comment 2 2025-05-08 23:29:30 PDT
EWS
Comment 3 2025-05-09 09:42:48 PDT
Committed 294714@main (85745f3bbae7): <https://commits.webkit.org/294714@main> Reviewed commits have been landed. Closing PR #45151 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.