• Klaus Weidner's avatar
    Track WebVR timings, add WaitPrevStrategy · 1882f132
    Klaus Weidner authored
    In preparation for GpuFence synchronization, track GVR acquire/submit
    times and report JavaScript waitForPreviousRender times back to
    VrShellGl via Mojo.
    
    Refactor waiting for previous transfer and render, using helper
    functions to unclutter submitFrame.
    
    Wait for previous transfer is only used for the Android surface path,
    move it there.
    
    Wait for previous render now support different choices for the
    execution point, including NEVER for the OpenVR path. The BEFORE_BITMAP
    choice is not yet active, it's intended for use with GpuFence-separated
    frames. It does work for the current render path too, but IIRC is a bit
    slower there due to less parallelism.
    
    BUG=761432
    
    Change-Id: I9d24d6e0a133ad76cfda4f40c2bba84ffd7363ef
    Reviewed-on: https://chromium-review.googlesource.com/802756Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
    Reviewed-by: default avatarBill Orr <billorr@chromium.org>
    Reviewed-by: default avatarMichael Thiessen <mthiesse@chromium.org>
    Commit-Queue: Klaus Weidner <klausw@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#521735}
    1882f132
vr_service.mojom 5.28 KB