• Dale Curtis's avatar
    Add a microtask version of the video.rAF for testing. · 6db10514
    Dale Curtis authored
    We're noticing that running the video.rAF as part of the rendering steps
    isn't always performant since the BeginFrame powering window.rAF is run
    much later than the one powering video rendering - resulting in frequent
    misses.
    
    While trying to diagnose this issue and whether we should switch to
    using a microtask we're running into issues where dev builds are not as
    performant as official builds, so to ease testing and analysis land a
    temporary microtask version of video.rAF behind a flag so we can compare
    using Mac/Win canary builds more effectively.
    
    Bug: 1012063
    Change-Id: Ie0609717d1863800550e858efbe144c8c0dde624
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2076180
    Auto-Submit: Dale Curtis <dalecurtis@chromium.org>
    Commit-Queue: Mounir Lamouri <mlamouri@chromium.org>
    Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
    Reviewed-by: default avatarMounir Lamouri <mlamouri@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#745602}
    6db10514
media_switches.cc 32.6 KB