⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 286834 in webkit


Ignore:
Timestamp:
Dec 9, 2021, 10:55:24 PM (5 years ago)
Author:
Simon Fraser
Message:

Inspector "composite" events are all very short
https://bugs.webkit.org/show_bug.cgi?id=234114
<rdar://86299391>

Reviewed by Tim Horton.

The kCATransactionPhasePreCommit callbacks fire after painting, but we want the composite
time to include painting so use kCATransactionPhasePreLayout.

  • WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm:

(WebKit::RemoteLayerTreeDrawingArea::addCommitHandlers):

  • WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:

(WebKit::TiledCoreAnimationDrawingArea::addCommitHandlers):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r286833 r286834  
     12021-12-09  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Inspector "composite" events are all very short
     4        https://bugs.webkit.org/show_bug.cgi?id=234114
     5        <rdar://86299391>
     6
     7        Reviewed by Tim Horton.
     8
     9        The kCATransactionPhasePreCommit callbacks fire after painting, but we want the composite
     10        time to include painting so use kCATransactionPhasePreLayout.
     11
     12        * WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm:
     13        (WebKit::RemoteLayerTreeDrawingArea::addCommitHandlers):
     14        * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
     15        (WebKit::TiledCoreAnimationDrawingArea::addCommitHandlers):
     16
    1172021-12-09  Aditya Keerthi  <akeerthi@apple.com>
    218
  • trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm

    r283966 r286834  
    294294                corePage->inspectorController().willComposite(*coreFrame);
    295295        }
    296     } forPhase:kCATransactionPhasePreCommit];
     296    } forPhase:kCATransactionPhasePreLayout];
    297297   
    298298    [CATransaction addCommitHandler:[retainedPage = Ref { m_webPage }] {
  • trunk/Source/WebKit/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm

    r284009 r286834  
    419419                corePage->inspectorController().willComposite(*coreFrame);
    420420        }
    421     } forPhase:kCATransactionPhasePreCommit];
     421    } forPhase:kCATransactionPhasePreLayout];
    422422
    423423    [CATransaction addCommitHandler:[retainedPage = Ref { m_webPage }] {
Note: See TracChangeset for help on using the changeset viewer.