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

Issue 2916423002: [WebVR] Handle slow connecting devices. (Closed)

Created:
3 years, 6 months ago by amp
Modified:
3 years, 6 months ago
Reviewers:
mthiesse, bajones
CC:
chromium-reviews, feature-vr-reviews_chromium.org, bsheedy
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[WebVR] Handle slow connecting devices. A race condition exists when entering WebVR while already in VR (from VrShell) which slows down devices connecting. We keep track if we have seen an immediate handling of the device without a connection (which signifies that libraries aren't loaded) which allows us to return a 0 count in that case, but return non-zero in the case where a device will eventually connect. BUG=729614 Review-Url: https://codereview.chromium.org/2916423002 Cr-Commit-Position: refs/heads/master@{#477103} Committed: https://chromium.googlesource.com/chromium/src/+/c0376a2d193d886e60e2e618be407e4a262446df

Patch Set 1 #

Total comments: 4

Patch Set 2 : add a check on the callstack when no libraries available #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -7 lines) Patch
M device/vr/vr_service_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M device/vr/vr_service_impl.cc View 1 4 chunks +28 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
amp
When trying to address the promise resolving issue we inadvertenly created a race condition in ...
3 years, 6 months ago (2017-06-02 22:55:47 UTC) #2
mthiesse
https://codereview.chromium.org/2916423002/diff/1/device/vr/vr_service_impl.cc File device/vr/vr_service_impl.cc (right): https://codereview.chromium.org/2916423002/diff/1/device/vr/vr_service_impl.cc#newcode56 device/vr/vr_service_impl.cc:56: std::move(callback).Run(expected_devices); I'm confused. Doesn't this just re-introduce the bug ...
3 years, 6 months ago (2017-06-05 16:18:08 UTC) #3
amp
On 2017/06/05 16:18:08, mthiesse wrote: > https://codereview.chromium.org/2916423002/diff/1/device/vr/vr_service_impl.cc > File device/vr/vr_service_impl.cc (right): > > https://codereview.chromium.org/2916423002/diff/1/device/vr/vr_service_impl.cc#newcode56 > ...
3 years, 6 months ago (2017-06-05 16:25:44 UTC) #4
amp
https://codereview.chromium.org/2916423002/diff/1/device/vr/vr_service_impl.cc File device/vr/vr_service_impl.cc (right): https://codereview.chromium.org/2916423002/diff/1/device/vr/vr_service_impl.cc#newcode56 device/vr/vr_service_impl.cc:56: std::move(callback).Run(expected_devices); On 2017/06/05 16:18:07, mthiesse wrote: > I'm confused. ...
3 years, 6 months ago (2017-06-05 16:31:18 UTC) #5
mthiesse
ugh this is so gross :P lgtm as a fix for M60, but as we've ...
3 years, 6 months ago (2017-06-05 17:36:27 UTC) #7
amp
https://codereview.chromium.org/2916423002/diff/1/device/vr/vr_service_impl.cc File device/vr/vr_service_impl.cc (right): https://codereview.chromium.org/2916423002/diff/1/device/vr/vr_service_impl.cc#newcode94 device/vr/vr_service_impl.cc:94: } On 2017/06/05 17:36:27, mthiesse wrote: > Can we ...
3 years, 6 months ago (2017-06-05 18:40:39 UTC) #10
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/2916423002/20001
3 years, 6 months ago (2017-06-05 19:18:20 UTC) #16
commit-bot: I haz the power
3 years, 6 months ago (2017-06-05 22:36:33 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/c0376a2d193d886e60e2e618be40...

Powered by Google App Engine
This is Rietveld 408576698