Bug 292762
| Summary: | Update the cached image encodedDataStatus only when the encoded data is incrementally updated | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> |
| Component: | Images | Assignee: | 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
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
<rdar://problem/150987081>
Said Abou-Hallawa
Pull request: https://github.com/WebKit/WebKit/pull/45151
EWS
Committed 294714@main (85745f3bbae7): <https://commits.webkit.org/294714@main>
Reviewed commits have been landed. Closing PR #45151 and removing active labels.