Summary: | ScalableImageDecoder should be using SharedBuffer instead of DataSegment | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jean-Yves Avenard [:jya] <jean-yves.avenard> | ||||||||||
Component: | Images | Assignee: | Jean-Yves Avenard [:jya] <jean-yves.avenard> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | darin, sabouhallawa, webkit-bug-importer | ||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||
Version: | Other | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=230662 | ||||||||||||
Bug Depends on: | 233030 | ||||||||||||
Bug Blocks: | 232424 | ||||||||||||
Attachments: |
|
Description
Jean-Yves Avenard [:jya]
2021-11-23 00:20:43 PST
Created attachment 447874 [details]
Patch
Created attachment 447909 [details]
Patch
rebase
Created attachment 447912 [details]
Test
Checking that those errors aren't happening with unpatched tree.
Created attachment 447924 [details]
Patch
Use DataSegment for ImageBackingStore
Comment on attachment 447924 [details]
Patch
If SharedBuffer is intrinsically immutable, then I think we should be using RefPtr<SharedBuffer> rather than RefPtr<const SharedBuffer>. Saying const all the time doesn’t have any meaning, right?
(In reply to Darin Adler from comment #6) > Comment on attachment 447924 [details] > Patch > > If SharedBuffer is intrinsically immutable, then I think we should be using > RefPtr<SharedBuffer> rather than RefPtr<const SharedBuffer>. Saying const > all the time doesn’t have any meaning, right? SharedBuffer still does have non const method such as takeData and in bug 232424 all SharedBuffer are passed as const SharedBuffer& By making it a RefPtr<const SharedBuffer> I can remove all the required const cast when taking a strong reference to that buffer Committed r287507 (245642@main): <https://commits.webkit.org/245642@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 447924 [details]. |