• Will Cassella's avatar
    Move all frame data responsibilities into XRFrameProvider · fdce2a68
    Will Cassella authored
    Previously, frame data management and scheduling responsibilities were
    somewhat split between the XR and XRFrameProvider classes. This CL moves
    all of those responsibilities into XRFrameProvider, leaving XR with the
    more high-level session management responsibilities. It also allows
    each session to have a different frame data provider instead of trying
    to reuse the same provider for all inline-local sessions (which is
    not the way the browser process sees things).
    
    Finally, it makes VROrientationDevice suspend the sensor once all
    inline-local sessions have been closed, and resume it once another is
    created.
    
    Bug: 1004008, 970854
    Change-Id: Ia87ac5883ee179aa964522fc955c36add43d1370
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1849098
    Commit-Queue: Will Cassella <cassew@google.com>
    Reviewed-by: default avatarKlaus Weidner <klausw@chromium.org>
    Reviewed-by: default avatarAlexander Cooper <alcooper@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#704769}
    fdce2a68
orientation_session.cc 2.5 KB