DescriptionWebVR: Defer GetVSync calls until the current frame is submitted.
In order to help the VR device with scheduling, never request a new VSync
until the current frame is either submitted or abandoned. If vrDisplay.rAF
is called earlier, defer the GetVSync until vrDisplay.submitFrame is called.
If the rAF callback exits without submitting a frame, call it at that time.
This helps ensure that the VR device knows how long the rendering portion
of the rAF callback takes, while making sure not to expect a frame that
won't arrive because the client failed to submit one.
BUG=723962
Review-Url: https://codereview.chromium.org/2888313002
Cr-Commit-Position: refs/heads/master@{#474053}
Committed: https://chromium.googlesource.com/chromium/src/+/7b6d11d65c59a5e13a62942227b5caf16c70993a
Patch Set 1 #
Total comments: 5
Patch Set 2 : Refactor RequestVSync, add comments and test #
Total comments: 2
Patch Set 3 : Add comments, remove dead code #Patch Set 4 : Rebase on crrev.com/2891033002#ps80001 (ps5) #Patch Set 5 : Rebase #Patch Set 6 : Rebase, depends-on is submitted #Patch Set 7 : Tweak test to run a few frames in magic window mode #
Dependent Patchsets: Messages
Total messages: 40 (26 generated)
|