WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
292762
Update the cached image encodedDataStatus only when the encoded data is incrementally updated
https://bugs.webkit.org/show_bug.cgi?id=292762
Summary
Update the cached image encodedDataStatus only when the encoded data is incre...
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
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-05-08 23:21:20 PDT
<
rdar://problem/150987081
>
Said Abou-Hallawa
Comment 2
2025-05-08 23:29:30 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/45151
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.
Top of Page
Format For Printing
XML
Clone This Bug