Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Issue 2774673003: WebVR: process animations from posted task to yield for other events (Closed)

Created:
3 years, 9 months ago by klausw
Modified:
3 years, 9 months ago
Reviewers:
haraken, bajones, bshe
CC:
chromium-reviews, haraken, blink-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/branch-heads/3029
Project:
chromium
Visibility:
Public.

Description

WebVR: process animations from posted task to yield for other events If we call GetVSync inline from OnVSync, we can end up with the next VSync already being ready and scheduled when we exit, and then we'll process several frames in a row without ever yielding back to the main event loop, causing input processing delay. BUG=701444 NOTRY=true NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2748293002 Cr-Commit-Position: refs/heads/master@{#457189} (cherry picked from commit ff386cfefd3fe0f9cef72ff28f7c7f09d972608d) Review-Url: https://codereview.chromium.org/2774673003 Cr-Commit-Position: refs/branch-heads/3029@{#394} Cr-Branched-From: 939b32ee5ba05c396eef3fd992822fcca9a2e262-refs/heads/master@{#454471} Committed: https://chromium.googlesource.com/chromium/src/+/40b2aa9268c6ff790dd6691bac26b5e15799852e

Patch Set 1 #

Patch Set 2 : Merge fix: add missing include file #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -6 lines) Patch
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.cpp View 1 3 chunks +22 lines, -4 lines 1 comment Download

Dependent Patchsets:

Messages

Total messages: 19 (11 generated)
klausw
Merged to branch-heads/3029 as discussed
3 years, 9 months ago (2017-03-23 20:22:19 UTC) #2
klausw
On 2017/03/23 20:22:19, klausw wrote: > Merged to branch-heads/3029 as discussed I meant this is ...
3 years, 9 months ago (2017-03-23 20:23:41 UTC) #3
klausw
bajones@chromium.org: This is a cherry-pick, can you confirm the changes to VRDisplay.* match those in ...
3 years, 9 months ago (2017-03-23 20:24:56 UTC) #5
bshe
On 2017/03/23 20:24:56, klausw wrote: > mailto:bajones@chromium.org: This is a cherry-pick, can you confirm the ...
3 years, 9 months ago (2017-03-23 20:31:48 UTC) #6
bajones
On 2017/03/23 20:31:48, bshe wrote: > On 2017/03/23 20:24:56, klausw wrote: > > mailto:bajones@chromium.org: This ...
3 years, 9 months ago (2017-03-23 20:39:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2774673003/20001
3 years, 9 months ago (2017-03-23 20:49:31 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/40b2aa9268c6ff790dd6691bac26b5e15799852e
3 years, 9 months ago (2017-03-23 20:56:02 UTC) #17
haraken
3 years, 9 months ago (2017-03-24 01:16:06 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/2774673003/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right):

https://codereview.chromium.org/2774673003/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/modules/vr/VRDisplay.cpp:727:
Platform::current()->currentThread()->getWebTaskRunner()->postTask(

The default task runner is going to be deprecated. Use
TaskRunnerHelper::postTask() instead.

See
https://cs.chromium.org/chromium/src/third_party/WebKit/public/platform/WebTh...

Powered by Google App Engine
This is Rietveld 408576698