[Webkit-unassigned] [Bug 249736] New: "Commit time" data is wrong with UI-side compositing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 21 12:01:51 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=249736
Bug ID: 249736
Summary: "Commit time" data is wrong with UI-side compositing
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Web Inspector
Assignee: webkit-unassigned at lists.webkit.org
Reporter: simon.fraser at apple.com
CC: inspector-bugzilla-changes at group.apple.com
When web inspecting iOS, or macOS with UI-side compositing enabled, the green "commit time" events in the timeline are always short. I think they only track the time in the fake CA commit triggers in RemoteLayerTreeDrawingArea::displayDidRefresh(), because they are registered like this:
void RemoteLayerTreeDrawingArea::addCommitHandlers()
{
if (m_webPage.firstFlushAfterCommit())
return;
[CATransaction addCommitHandler:[retainedPage = Ref { m_webPage }] {
if (Page* corePage = retainedPage->corePage()) {
if (Frame* coreFrame = retainedPage->mainFrame())
corePage->inspectorController().willComposite(*coreFrame);
}
} forPhase:kCATransactionPhasePreLayout];
[CATransaction addCommitHandler:[retainedPage = Ref { m_webPage }] {
if (Page* corePage = retainedPage->corePage()) {
if (Frame* coreFrame = retainedPage->mainFrame())
corePage->inspectorController().didComposite(*coreFrame);
}
retainedPage->setFirstFlushAfterCommit(false);
} forPhase:kCATransactionPhasePostCommit];
m_webPage.setFirstFlushAfterCommit(true);
}
This is wrong because there are no CA Commits (other than this garbage-collection one) in the web process.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221221/dd5fd4cd/attachment-0001.htm>
More information about the webkit-unassigned
mailing list