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

Issue 2570553004: Clean up some VrShell threading issues and remove unnecessary WeakPtr types. (Closed)

Created:
4 years ago by mthiesse
Modified:
4 years ago
Reviewers:
klausw, hendrikw, bajones, bshe
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up some VrShell threading issues and remove unnecessary WeakPtr types. I originally added the WeakPtrs all over the place so that we could post to the device provider from the GL thread. This CL moves the calls to the UI thread, and removes the WeakPtrs with it. BUG=671302 Committed: https://crrev.com/2bcae0c61cb693232a4cf83dd4dcd175463e9bd4 Cr-Commit-Position: refs/heads/master@{#438870}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address comments #

Patch Set 3 : Address comments #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -144 lines) Patch
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 3 13 chunks +62 lines, -54 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_delegate.h View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_delegate.cc View 6 chunks +13 lines, -17 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.h View 1 2 3 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 3 7 chunks +12 lines, -30 lines 0 comments Download
M device/vr/android/gvr/gvr_delegate.h View 2 chunks +2 lines, -4 lines 0 comments Download
M device/vr/android/gvr/gvr_device.h View 3 chunks +3 lines, -5 lines 0 comments Download
M device/vr/android/gvr/gvr_device.cc View 4 chunks +10 lines, -7 lines 0 comments Download
M device/vr/android/gvr/gvr_device_provider.h View 3 chunks +5 lines, -4 lines 0 comments Download
M device/vr/android/gvr/gvr_device_provider.cc View 5 chunks +10 lines, -4 lines 0 comments Download
M device/vr/android/gvr/gvr_gamepad_data_fetcher.h View 2 chunks +2 lines, -4 lines 0 comments Download
M device/vr/android/gvr/gvr_gamepad_data_fetcher.cc View 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
mthiesse
Klaus, Biao, can you please review this as Brandon's on leave?
4 years ago (2016-12-13 20:01:10 UTC) #2
bshe
https://codereview.chromium.org/2570553004/diff/1/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2570553004/diff/1/chrome/browser/android/vr_shell/vr_shell.cc#newcode45 chrome/browser/android/vr_shell/vr_shell.cc:45: GLThread(VrShell* vr_shell, const base::WeakPtr<VrShell>& weak_vr_shell, looks like you can ...
4 years ago (2016-12-14 16:06:46 UTC) #4
mthiesse
https://codereview.chromium.org/2570553004/diff/1/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2570553004/diff/1/chrome/browser/android/vr_shell/vr_shell.cc#newcode45 chrome/browser/android/vr_shell/vr_shell.cc:45: GLThread(VrShell* vr_shell, const base::WeakPtr<VrShell>& weak_vr_shell, On 2016/12/14 16:06:46, bshe ...
4 years ago (2016-12-14 16:20:43 UTC) #5
bshe
lgtm https://codereview.chromium.org/2570553004/diff/1/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2570553004/diff/1/chrome/browser/android/vr_shell/vr_shell.cc#newcode265 chrome/browser/android/vr_shell/vr_shell.cc:265: base::Bind(&VrShellGl::SetWebVrMode, thread->GetVrShellGl(), enabled)); On 2016/12/14 16:20:43, mthiesse wrote: ...
4 years ago (2016-12-14 17:36:51 UTC) #6
mthiesse
https://codereview.chromium.org/2570553004/diff/1/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2570553004/diff/1/chrome/browser/android/vr_shell/vr_shell.cc#newcode265 chrome/browser/android/vr_shell/vr_shell.cc:265: base::Bind(&VrShellGl::SetWebVrMode, thread->GetVrShellGl(), enabled)); On 2016/12/14 17:36:51, bshe wrote: > ...
4 years ago (2016-12-14 21:25:37 UTC) #7
mthiesse
rockot@chromium.org: Please OWNERS review changes in device/
4 years ago (2016-12-14 21:26:48 UTC) #9
Ken Rockot(use gerrit already)
Please use an owner from the more specific device/vr/OWNERS list
4 years ago (2016-12-14 21:36:01 UTC) #10
mthiesse
kbr@chromium.org, please OWNERS review device/vr/ changes.
4 years ago (2016-12-14 21:38:24 UTC) #12
mthiesse
-kbr who appears to be on vacation. hendrikw, please OWNERS review device/vr changes.
4 years ago (2016-12-15 17:10:54 UTC) #14
bajones
On 2016/12/15 17:10:54, mthiesse wrote: > -kbr who appears to be on vacation. > > ...
4 years ago (2016-12-15 17:17:17 UTC) #15
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/2570553004/60001
4 years ago (2016-12-15 17:21:07 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-15 17:51:07 UTC) #21
commit-bot: I haz the power
4 years ago (2016-12-15 17:53:33 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2bcae0c61cb693232a4cf83dd4dcd175463e9bd4
Cr-Commit-Position: refs/heads/master@{#438870}

Powered by Google App Engine
This is Rietveld 408576698