Move all frame data responsibilities into XRFrameProvider
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:Klaus Weidner <klausw@chromium.org> Reviewed-by:
Alexander Cooper <alcooper@chromium.org> Cr-Commit-Position: refs/heads/master@{#704769}
Showing
This diff is collapsed.
Please register or sign in to comment