Bug 249785

Summary: Hook up willStartRenderingUpdateDisplay/didCompleteRenderingUpdateDisplay for WC
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: WebKit Misc.Assignee: Fujii Hironori <Hironori.Fujii>
Status: RESOLVED FIXED    
Severity: Normal CC: don.olmstead, Hironori.Fujii, 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=249750
Attachments:
Description Flags
Patch none

Description Simon Fraser (smfr) 2022-12-22 10:04:54 PST
In bug 249750/258248@main I added Page:: willStartRenderingUpdateDisplay() and Page:: didCompleteRenderingUpdateDisplay(), which get called before and after the painting phase and compositing phase of a rendering update. These are used to drive web inspector's "Composite" timeline events, and will also be used for other things soon.

WebKit2 clients can call these via the same-named functions on WebPage.

These need hooking up for WC, at the DrawingArea level.
Comment 1 Radar WebKit Bug Importer 2022-12-29 10:05:29 PST
<rdar://problem/103762121>
Comment 2 Fujii Hironori 2023-01-04 21:26:32 PST
258311@main (bug#249807) added another hook didCompleteRenderingFrame.
https://github.com/WebKit/WebKit/commit/bf82da4c0e3bbd409f44510fa9f3d1891808d770
Comment 3 Fujii Hironori 2023-01-04 21:35:28 PST
Created attachment 464342 [details]
Patch
Comment 4 EWS 2023-01-05 12:36:08 PST
Committed 258501@main (27763ea20188): <https://commits.webkit.org/258501@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 464342 [details].