• behdad's avatar
    Record latency for Impl thread in case of no begin main frame. · 2fcffb28
    behdad authored
    This CL reports the latency in case of no begin main frame.
    This can happen in any of the scenarios below:
    
    1) WillBeginImplFrame -> DidFinishImplFrame -> DidSubmitCompositorFrame
    
    2) WillBeginImplFrame -> WillBeginMainFrame -> BeginMainFrameAborted ->
    DidFinishImplFrame -> DidSubmitCompositorFrame
    
    3) WillBeginImplFrame -> WillBeginMainFrame -> DidFinishImplFrame ->
    BeginMainFrameAborted -> DidSubmitCompositorFrame
    
    In these cases there will be no latency to report for stages of:
    - SendBeginMainFrameToCommit
    - Commit
    - EndCommitToActivation
    But the latency will be reported for the remaining stages.
    
    Bug: chromium:1003038
    Change-Id: Id0d6a65603b2b15a0ee04a6974a4bd0b2a5a803b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1799026
    Commit-Queue: Behdad Bakhshinategh <behdadb@chromium.org>
    Reviewed-by: default avatarSadrul Chowdhury <sadrul@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#705964}
    2fcffb28
compositor_frame_reporting_controller.h 3.66 KB