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

Issue 2955483003: Show splash screen when entering VR from a deep-link (Closed)

Created:
3 years, 6 months ago by ymalik
Modified:
3 years, 5 months ago
Reviewers:
mthiesse, cjgrant, bshe
CC:
chromium-reviews, feature-vr-reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Show splash screen when entering VR from a deep-link This CL adds the necessary splash screen ui to show when we are going to auto-present WebVR content. The flow of things is that when we get a new auto-present intent, we enter VR (not in web vr mode) and create VrShell with "web_vr_autopresentation_expected" parameter. This tells UiSceneManager to show the splash screen. When the WebVR page calles requestPresent, we enter WebVR mode and the ui scene manager hides the splash screen. Notes - Currently, the UI not show up if Chrome is started for the first time. This has to do with the fact that we can't enter VR early in that case. bshe@ is working on that. - The loading spinner on the splash screen is not added in this patch - This patch expects a sane WebVR page in that it doesn't handle error cases such as requestPresent never being called. BUG=699815 Review-Url: https://codereview.chromium.org/2955483003 Cr-Commit-Position: refs/heads/master@{#482295} Committed: https://chromium.googlesource.com/chromium/src/+/2efa616e207873fdbbf1ae8f144d16708b4a0d62

Patch Set 1 #

Patch Set 2 : . #

Total comments: 18

Patch Set 3 : address comments #

Patch Set 4 : rebase #

Patch Set 5 : fix compile error on bots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -92 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java View 1 2 3 6 chunks +15 lines, -10 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java View 1 2 3 7 chunks +40 lines, -11 lines 0 comments Download
M chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/color_scheme.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/color_scheme.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/textures/splash_screen_icon_texture.h View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/textures/splash_screen_icon_texture.cc View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/ui_elements/splash_screen_icon.h View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/ui_elements/splash_screen_icon.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_interface.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/ui_scene.cc View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.h View 1 2 3 7 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.cc View 1 2 3 4 8 chunks +51 lines, -16 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc View 1 2 3 4 9 chunks +16 lines, -23 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.h View 1 2 3 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.cc View 1 2 3 6 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 3 7 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 24 (13 generated)
ymalik
hey folks, PTAL :) @bshe, I'm currently only handling the case where chrome is already ...
3 years, 6 months ago (2017-06-23 09:10:20 UTC) #3
cjgrant
https://codereview.chromium.org/2955483003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java (right): https://codereview.chromium.org/2955483003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode685 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:685: //&& ChromeFeatureList.isEnabled(ChromeFeatureList.WEBVR_AUTOPRESENT) This needs cleanup. https://codereview.chromium.org/2955483003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java (right): ...
3 years, 6 months ago (2017-06-23 19:26:33 UTC) #4
cjgrant
lgtm in general, assuming the nits and questions are addressed. Yash, lets chat if any ...
3 years, 6 months ago (2017-06-23 20:53:37 UTC) #5
mthiesse
lgtm % chris' comments. https://codereview.chromium.org/2955483003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java (right): https://codereview.chromium.org/2955483003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java#newcode335 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:335: .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); On 2017/06/23 19:26:32, cjgrant ...
3 years, 6 months ago (2017-06-23 23:11:25 UTC) #7
ymalik
@Chris, addressed your comments. Regarding your main question about copies of bitmap, we're only doing ...
3 years, 6 months ago (2017-06-25 20:27:14 UTC) #8
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/2955483003/40001
3 years, 6 months ago (2017-06-25 20:27:39 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/239293) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-25 20:29:49 UTC) #13
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/2955483003/60001
3 years, 6 months ago (2017-06-26 04:11:36 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/297252)
3 years, 6 months ago (2017-06-26 04:54:47 UTC) #18
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/2955483003/80001
3 years, 5 months ago (2017-06-26 15:26:50 UTC) #21
commit-bot: I haz the power
3 years, 5 months ago (2017-06-26 16:40:26 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/2efa616e207873fdbbf1ae8f144d...

Powered by Google App Engine
This is Rietveld 408576698