Bug 225959

Summary: [GPU Process] Delete GraphicsContext::clipToDrawingCommands()
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: CanvasAssignee: Said Abou-Hallawa <sabouhallawa>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, changseok, darin, dino, esprehn+autocc, ews-watchlist, fmalita, fred.wang, glenn, gyuyoung.kim, kondapallykalyan, pdr, schenney, sergio, simon.fraser, 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=217026
https://bugs.webkit.org/show_bug.cgi?id=222230
https://bugs.webkit.org/show_bug.cgi?id=222881
https://bugs.webkit.org/show_bug.cgi?id=237261
Bug Depends on: 235758    
Bug Blocks: 236508    
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch
none
Patch
ews-feeder: commit-queue-
Patch
none
Patch for review
none
Patch
darin: review+
Patch none

Said Abou-Hallawa
Reported 2021-05-18 22:46:31 PDT
If the underlying ImageBuffer of a GraphicsContext is a RemoteImageBufferProxy, ImageBuffer::createCompatibleBuffer() should create a RemoteImageBufferProxy. This will fix things like clipToDrawingCommands. This methods and its corresponding DisplayList items can be removed. The masking ImageBuffer will be remote. All the clipping commands will be recorded and sent to the GPUP. The caller in the WeP can just call clipToImageBuffer(). This will apply the drawing commands to the mask ImageBuffer in the GPUP. And then the masking ImageBuffer will be used to clip the original ImageBuffer.
Attachments
Patch (45.36 KB, patch)
2021-05-18 22:50 PDT, Said Abou-Hallawa
ews-feeder: commit-queue-
Patch (54.01 KB, patch)
2021-05-18 23:22 PDT, Said Abou-Hallawa
no flags
Patch (93.40 KB, patch)
2022-01-28 19:39 PST, Said Abou-Hallawa
ews-feeder: commit-queue-
Patch (90.79 KB, patch)
2022-01-28 19:49 PST, Said Abou-Hallawa
no flags
Patch for review (48.88 KB, patch)
2022-01-28 21:05 PST, Said Abou-Hallawa
no flags
Patch (52.15 KB, patch)
2022-02-10 01:47 PST, Said Abou-Hallawa
darin: review+
Patch (52.43 KB, patch)
2022-02-10 11:35 PST, Said Abou-Hallawa
no flags
Said Abou-Hallawa
Comment 1 2021-05-18 22:50:29 PDT
Said Abou-Hallawa
Comment 2 2021-05-18 23:22:35 PDT
Radar WebKit Bug Importer
Comment 3 2021-05-25 22:47:20 PDT
Said Abou-Hallawa
Comment 4 2022-01-28 19:04:21 PST
I am going to repurpose this bug for deleting the GraphicsContext::clipToDrawingCommands() and make it blocked by bug 235758.
Said Abou-Hallawa
Comment 5 2022-01-28 19:39:45 PST
Said Abou-Hallawa
Comment 6 2022-01-28 19:49:55 PST
Said Abou-Hallawa
Comment 7 2022-01-28 21:05:16 PST
Created attachment 450308 [details] Patch for review
Darin Adler
Comment 8 2022-02-03 04:27:25 PST
Comment on attachment 450308 [details] Patch for review Need a new try that passes EWS
Said Abou-Hallawa
Comment 9 2022-02-10 01:47:09 PST
Said Abou-Hallawa
Comment 10 2022-02-10 11:05:23 PST
This patch is reverting the following revisions: r267742 r273291 r277715
Said Abou-Hallawa
Comment 11 2022-02-10 11:35:27 PST
Said Abou-Hallawa
Comment 12 2022-02-10 11:38:18 PST
(In reply to Said Abou-Hallawa from comment #11) > Created attachment 451584 [details] > Patch Forgot to remove the unused member RemoteDisplayListRecorder::m_maskImageBuffer.
EWS
Comment 13 2022-02-10 16:28:31 PST
Committed r289594 (247107@main): <https://commits.webkit.org/247107@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 451584 [details].
Note You need to log in before you can comment on or make changes to this bug.