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

Issue 2252103002: Introduce ChromeVR to Chrome on Android (behind a build flag) (Closed)

Created:
4 years, 4 months ago by bshe
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce ChromeVR to Chrome on Android (behind a build flag) This CL implements the following: 1. Adds a new activity called VrActivity. It extends from AsyncInitializationActivity and can only be launched from Daydream app. 2. Adds a VrShell and its native part. VrShell has a GLSurfaceView as presentation view for drawing left and right images and an inheriated(from GvrLayout) scanline racing view(another GLSurfaceView). 3. Created a texture quad that is reserved for compositor to use to output content frames. The quad is positioned at (0.0, 0.0, -1.0) Known issue: 1. The quad is black as we haven't hookup a compositor to draw frames 2. tabs are not shared with ChromeTabbedActivity To test this, add "enable_vr_shell=true" in your gn args. BUG=638642 Committed: https://crrev.com/16e132a1b213a07254d25b50a42ba9e9304d3f75 Cr-Commit-Position: refs/heads/master@{#414890}

Patch Set 1 #

Total comments: 5

Patch Set 2 : release SurfaceTexture in shutdown #

Total comments: 6

Patch Set 3 : address review #

Patch Set 4 : rebase #

Patch Set 5 : compile errors #

Total comments: 5

Patch Set 6 : Rebaes and address 2 in 3 reviews #

Total comments: 11

Patch Set 7 : Address more reviews #

Total comments: 2

Patch Set 8 : use MainTheme and remove code in compositor_view. Will implement compositor related plumbing in a s… #

Patch Set 9 : remove a unneccessary null check #

Total comments: 2

Patch Set 10 : add comment as suggested by Daniel #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1008 lines, -7 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/android/chrome_public_apk_tmpl.gni View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/AndroidManifest.xml View 1 2 3 4 5 6 7 3 chunks +21 lines, -5 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/VrActivity.java View 1 2 3 4 5 6 7 1 chunk +73 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorView.java View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java View 1 2 3 4 5 6 7 8 9 1 chunk +159 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_shell.h View 1 chunk +77 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_shell.cc View 1 chunk +199 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_shell_renderer.h View 1 2 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_shell_renderer.cc View 1 2 1 chunk +126 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_util.h View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_util.cc View 1 chunk +178 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 52 (26 generated)
bshe
Hi Daniel. Do you mind to take a look at this CL? It is a ...
4 years, 4 months ago (2016-08-17 17:57:07 UTC) #2
mthiesse1
device/vr/ changes look like the should probably go in a separate CL. https://codereview.chromium.org/2252103002/diff/1/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc ...
4 years, 4 months ago (2016-08-18 16:11:46 UTC) #5
bajones
On 2016/08/18 16:11:46, mthiesse1 wrote: > device/vr/ changes look like the should probably go in ...
4 years, 4 months ago (2016-08-18 16:42:17 UTC) #6
mthiesse1
On 2016/08/18 16:42:17, bajones wrote: > On 2016/08/18 16:11:46, mthiesse1 wrote: > > device/vr/ changes ...
4 years, 4 months ago (2016-08-18 16:57:50 UTC) #7
bshe
https://codereview.chromium.org/2252103002/diff/1/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2252103002/diff/1/chrome/browser/android/vr_shell/vr_shell.cc#newcode35 chrome/browser/android/vr_shell/vr_shell.cc:35: transfrom_to_world.m[0][0] = 1; On 2016/08/18 16:11:46, mthiesse1 wrote: > ...
4 years, 4 months ago (2016-08-18 17:15:43 UTC) #8
mthiesse1
On 2016/08/18 17:15:43, bshe wrote: > https://codereview.chromium.org/2252103002/diff/1/chrome/browser/android/vr_shell/vr_shell.cc > File chrome/browser/android/vr_shell/vr_shell.cc (right): > > https://codereview.chromium.org/2252103002/diff/1/chrome/browser/android/vr_shell/vr_shell.cc#newcode35 > ...
4 years, 4 months ago (2016-08-18 17:18:35 UTC) #9
bshe
looks like Daniel is OOO. Add piman@ for review. Antoine, do you mind to take ...
4 years, 4 months ago (2016-08-18 21:17:22 UTC) #11
piman
On 2016/08/18 21:17:22, bshe wrote: > looks like Daniel is OOO. > Add piman@ for ...
4 years, 4 months ago (2016-08-18 21:47:36 UTC) #12
piman
https://codereview.chromium.org/2252103002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java (right): https://codereview.chromium.org/2252103002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java#newcode77 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java:77: mSurfaceTexture = new SurfaceTexture(textureDataHandle); IIUC, createExternalTextureHandle generates a new ...
4 years, 4 months ago (2016-08-18 21:51:14 UTC) #13
bshe
Thanks for review. Add owners for some of the folder that I modified for review. ...
4 years, 4 months ago (2016-08-19 16:48:09 UTC) #15
bajones
https://codereview.chromium.org/2252103002/diff/20001/chrome/android/BUILD.gn File chrome/android/BUILD.gn (right): https://codereview.chromium.org/2252103002/diff/20001/chrome/android/BUILD.gn#newcode564 chrome/android/BUILD.gn:564: if (enable_vr_shell) { This block won't be necessary once ...
4 years, 4 months ago (2016-08-19 17:29:43 UTC) #17
bshe
https://codereview.chromium.org/2252103002/diff/20001/chrome/android/BUILD.gn File chrome/android/BUILD.gn (right): https://codereview.chromium.org/2252103002/diff/20001/chrome/android/BUILD.gn#newcode564 chrome/android/BUILD.gn:564: if (enable_vr_shell) { On 2016/08/19 17:29:42, bajones wrote: > ...
4 years, 4 months ago (2016-08-19 21:05:10 UTC) #18
bshe
Looks like Yaron is OOO too. add another owner: mariakhomenko@chromium.org: Please review changes in chrome/browser/android/* ...
4 years, 4 months ago (2016-08-22 22:10:37 UTC) #29
no sievers
https://codereview.chromium.org/2252103002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java (right): https://codereview.chromium.org/2252103002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java#newcode77 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java:77: mSurfaceTexture = new SurfaceTexture(textureDataHandle); On 2016/08/19 16:48:09, bshe wrote: ...
4 years, 4 months ago (2016-08-22 22:55:02 UTC) #30
Maria
A few questions https://codereview.chromium.org/2252103002/diff/120001/chrome/android/java/AndroidManifest.xml File chrome/android/java/AndroidManifest.xml (right): https://codereview.chromium.org/2252103002/diff/120001/chrome/android/java/AndroidManifest.xml#newcode357 chrome/android/java/AndroidManifest.xml:357: <activity-alias android:name="com.google.android.apps.chrome.VrMain" why do you need ...
4 years, 4 months ago (2016-08-24 00:06:07 UTC) #32
bshe
Thanks for the review! Had some discussion with sievers@ offline yesterday. And I am still ...
4 years, 4 months ago (2016-08-24 13:47:41 UTC) #33
Maria
lgtm from perspective of activity setup / manifest. I haven't reviewed the compositor / native ...
4 years, 4 months ago (2016-08-24 17:35:02 UTC) #34
bshe
Thanks for review. Had offline discussion with Daniel and decided to separate the code that ...
4 years, 3 months ago (2016-08-26 18:20:24 UTC) #37
mthiesse
https://codereview.chromium.org/2252103002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java (right): https://codereview.chromium.org/2252103002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java#newcode77 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java:77: if (mNativeVrShell == 0) return; This should either be ...
4 years, 3 months ago (2016-08-26 18:36:07 UTC) #39
bshe
https://codereview.chromium.org/2252103002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java (right): https://codereview.chromium.org/2252103002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java#newcode77 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java:77: if (mNativeVrShell == 0) return; On 2016/08/26 18:36:07, mthiesse ...
4 years, 3 months ago (2016-08-26 19:02:09 UTC) #40
sky
LGTM
4 years, 3 months ago (2016-08-26 20:13:02 UTC) #41
no sievers
lgtm https://codereview.chromium.org/2252103002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java (right): https://codereview.chromium.org/2252103002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java#newcode76 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java:76: int textureDataHandle = createExternalTextureHandle(); per offline chat, i'd ...
4 years, 3 months ago (2016-08-26 22:35:54 UTC) #44
bshe
Thanks! https://codereview.chromium.org/2252103002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java (right): https://codereview.chromium.org/2252103002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java#newcode76 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java:76: int textureDataHandle = createExternalTextureHandle(); On 2016/08/26 22:35:54, sievers ...
4 years, 3 months ago (2016-08-26 22:50:23 UTC) #45
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/2252103002/200001
4 years, 3 months ago (2016-08-26 22:51:46 UTC) #48
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 3 months ago (2016-08-27 10:38:36 UTC) #50
commit-bot: I haz the power
4 years, 3 months ago (2016-08-27 10:40:38 UTC) #52
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/16e132a1b213a07254d25b50a42ba9e9304d3f75
Cr-Commit-Position: refs/heads/master@{#414890}

Powered by Google App Engine
This is Rietveld 408576698