Bug 265363

Summary: Decouple BitmapImage sources and main functions into separate classes
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: ImagesAssignee: Said Abou-Hallawa <sabouhallawa>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, 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=271979
https://bugs.webkit.org/show_bug.cgi?id=271977
Bug Depends on: 268127, 267254, 267570, 267571, 267607, 268184, 269626, 271977    
Bug Blocks:    

Description Said Abou-Hallawa 2023-11-26 22:41:54 PST
This class is needlessly complicated which makes it difficult to hack. It handles

1. NativeImage and ImageSource images
2. Static and animated images
3. Async and sync image decoding

It also supports lots of testing APIs and tuning and corner cases. What we need is a simple and clear design interface which splits these cases and tuning nicely. This will make changing the class a lot easier in the future.
Comment 1 Radar WebKit Bug Importer 2023-11-26 22:42:32 PST
<rdar://problem/118819338>
Comment 2 Said Abou-Hallawa 2023-11-26 22:48:59 PST
Pull request: https://github.com/WebKit/WebKit/pull/20916
Comment 3 EWS 2024-02-15 11:04:09 PST
Committed 274746@main (055031e5c8a8): <https://commits.webkit.org/274746@main>

Reviewed commits have been landed. Closing PR #20916 and removing active labels.
Comment 4 WebKit Commit Bot 2024-02-16 16:21:14 PST
Re-opened since this is blocked by bug 269626
Comment 5 Said Abou-Hallawa 2024-02-16 21:49:20 PST
Pull request: https://github.com/WebKit/WebKit/pull/24678
Comment 6 EWS 2024-03-29 06:50:53 PDT
Committed 276827@main (8b78e07f7be5): <https://commits.webkit.org/276827@main>

Reviewed commits have been landed. Closing PR #24678 and removing active labels.
Comment 7 Said Abou-Hallawa 2024-04-01 12:17:14 PDT
*** Bug 268184 has been marked as a duplicate of this bug. ***