| Summary: | [GPU Process] Add the class 'SourceImage' to represent variants of image | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> | ||||||||||
| Component: | Layout and Rendering | Assignee: | Said Abou-Hallawa <sabouhallawa> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | annulen, bfulgham, dino, ews-watchlist, fmalita, gyuyoung.kim, heycam, kondapallykalyan, pdr, ryuan.choi, schenney, sergio, simon.fraser, webkit-bug-importer, zalan | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Bug Depends on: | |||||||||||||
| Bug Blocks: | 232411 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Said Abou-Hallawa
2022-01-21 20:02:04 PST
Created attachment 449719 [details]
Patch
Created attachment 449720 [details]
Patch
Created attachment 449722 [details]
Patch
Comment on attachment 449722 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=449722&action=review > Source/WebCore/ChangeLog:8 > + Before the existence of GPUProces we used to make some drawing on an "GPUProcess" s/make some drawing/do some drawing/ > Source/WebCore/ChangeLog:10 > + NativeImage. With GPUProces, this will require bouncing the NativeImage "GPUProcess" > Source/WebCore/ChangeLog:11 > + between WebPorcess and GPUProcess at least two times. To make this scenario "WebProcess" > Source/WebCore/ChangeLog:12 > + efficient, a new class called SourceImage' will be introduced. The purpose Stray (or missing) apostrophe. > Source/WebCore/platform/graphics/SourceImage.cpp:74 > + auto imageBuffer = ImageBuffer::create(nativeImage->size(), RenderingMode::Unaccelerated, 1, DestinationColorSpace::SRGB(), PixelFormat::BGRA8); If canvas patterns will use this class, then they'll need a way to specify the color space when creating the ImageBuffer, so that we don't always convert to sRGB. Created attachment 449728 [details]
Patch
Committed r288412 (246303@main): <https://commits.webkit.org/246303@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 449728 [details]. |