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

Issue 2467873004: Linking arm and arm64 gvr static shim library (Closed)

Created:
4 years, 1 month ago by bshe
Modified:
4 years, 1 month ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Linking arm and arm64 gvr static shim library. This should reduce our binary size increase significantly for VR related feature, as well as avoid issue with crazy linker which has problem handling two shared libraries. Note that the static library is mostly a shim lib. It will dynamically load the correct library from VrCore service at runtime when needed. Our initial target is Pixel and Pixel XL phones. And VrCore should exist in both phones. If VrCore doesn't exist or the version is older than we expect, VR will be disabled. Support for x86 and x64 will be added later. BUG=644785 Committed: https://crrev.com/0907c2d02be6980427e4ecc372c47985e7dddffd Cr-Commit-Position: refs/heads/master@{#431699}

Patch Set 1 #

Patch Set 2 : More nits #

Patch Set 3 : Add static lib to test on bots #

Patch Set 4 : Doesnt make sense #

Patch Set 5 : rebase #

Patch Set 6 : More fixes #

Patch Set 7 : rebase #

Patch Set 8 : more fixes #

Patch Set 9 : nit #

Patch Set 10 : Fix presubmit #

Patch Set 11 : reflection and format #

Patch Set 12 : Don't use hard coded number and fix a bug that prevent VrCore check #

Patch Set 13 : Add arm64 support and clean up #

Patch Set 14 : More cleanup and fix clang bot #

Patch Set 15 : Final cleanup before review #

Total comments: 17

Patch Set 16 : More specific deps and reviews #

Total comments: 4

Patch Set 17 : address review #

Patch Set 18 : rebase #

Total comments: 2

Patch Set 19 : Move DEPS to android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2007 lines, -145 lines) Patch
M .gitignore View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +33 lines, -0 lines 0 comments Download
M build/config/features.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -5 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionChecker.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +44 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +28 lines, -2 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/android/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +62 lines, -59 lines 0 comments Download
M device/vr/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +55 lines, -52 lines 0 comments Download
M third_party/gvr-android-sdk/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +1 line, -26 lines 0 comments Download
A third_party/gvr-android-sdk/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/gvr-android-sdk/README.chromium View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +11 lines, -1 line 0 comments Download
A third_party/gvr-android-sdk/common_library.aar.sha1 View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A third_party/gvr-android-sdk/display_synchronizer_jni.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +137 lines, -0 lines 0 comments Download
A third_party/gvr-android-sdk/gvr_api_jni.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1306 lines, -0 lines 0 comments Download
A third_party/gvr-android-sdk/libgvr_shim_static_arm.a.sha1 View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A third_party/gvr-android-sdk/libgvr_shim_static_arm64.a.sha1 View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A third_party/gvr-android-sdk/native_callbacks_jni.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +289 lines, -0 lines 0 comments Download

Messages

Total messages: 72 (54 generated)
bshe
PTAL. Thanks! bajones@chromium.org: Please review changes in device/vr/* chrome/browser/android/vr_shell/* third_party/gvr-android-sdk/* dtrainor@chromium.org: Please review changes in ...
4 years, 1 month ago (2016-11-10 18:42:40 UTC) #44
Lei Zhang
https://codereview.chromium.org/2467873004/diff/300001/third_party/gvr-android-sdk/DEPS File third_party/gvr-android-sdk/DEPS (right): https://codereview.chromium.org/2467873004/diff/300001/third_party/gvr-android-sdk/DEPS#newcode2 third_party/gvr-android-sdk/DEPS:2: '+base', You only need base/android, right? You can add ...
4 years, 1 month ago (2016-11-10 18:54:35 UTC) #45
agrieve
https://codereview.chromium.org/2467873004/diff/300001/build/config/features.gni File build/config/features.gni (right): https://codereview.chromium.org/2467873004/diff/300001/build/config/features.gni#newcode86 build/config/features.gni:86: enable_webvr = is_android && (current_cpu == "arm" || current_cpu ...
4 years, 1 month ago (2016-11-10 19:16:30 UTC) #46
bshe
-Lei Zhang as I have changed the DEPS to a more specific rules Also address ...
4 years, 1 month ago (2016-11-10 20:59:25 UTC) #49
bajones
gvr-android-sdk/ and vr-shell/ LGTM
4 years, 1 month ago (2016-11-10 21:35:16 UTC) #50
agrieve
lgtm https://codereview.chromium.org/2467873004/diff/300001/build/config/features.gni File build/config/features.gni (right): https://codereview.chromium.org/2467873004/diff/300001/build/config/features.gni#newcode86 build/config/features.gni:86: enable_webvr = is_android && (current_cpu == "arm" || ...
4 years, 1 month ago (2016-11-10 21:47:05 UTC) #51
bshe
https://codereview.chromium.org/2467873004/diff/300001/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/2467873004/diff/300001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode88 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:88: mVrCoreVersionCheckerClass = (Class<? extends VrCoreVersionChecker>) Class.forName( On 2016/11/10 21:47:04, ...
4 years, 1 month ago (2016-11-11 17:43:03 UTC) #52
David Trainor- moved to gerrit
lgtm with a few nits. https://codereview.chromium.org/2467873004/diff/340001/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/2467873004/diff/340001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode94 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:94: mVrDaydreamApiClass = null; Set ...
4 years, 1 month ago (2016-11-11 18:00:10 UTC) #53
bshe
https://codereview.chromium.org/2467873004/diff/340001/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/2467873004/diff/340001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode94 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:94: mVrDaydreamApiClass = null; On 2016/11/11 18:00:10, David Trainor wrote: ...
4 years, 1 month ago (2016-11-11 19:33:16 UTC) #54
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/2467873004/380001
4 years, 1 month ago (2016-11-11 22:03:26 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/302666)
4 years, 1 month ago (2016-11-11 22:15:06 UTC) #59
bshe
+thestig again. Sorry, it turns out that I need owner for chrome/browser/DEPS It looks like ...
4 years, 1 month ago (2016-11-11 22:28:13 UTC) #61
Lei Zhang
https://codereview.chromium.org/2467873004/diff/380001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://codereview.chromium.org/2467873004/diff/380001/chrome/browser/DEPS#newcode80 chrome/browser/DEPS:80: "+third_party/gvr-android-sdk", Can this move into chrome/browser/android/DEPS ? i.e. Will ...
4 years, 1 month ago (2016-11-11 22:31:54 UTC) #62
bshe
https://codereview.chromium.org/2467873004/diff/380001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://codereview.chromium.org/2467873004/diff/380001/chrome/browser/DEPS#newcode80 chrome/browser/DEPS:80: "+third_party/gvr-android-sdk", On 2016/11/11 22:31:54, Lei Zhang (slow) wrote: > ...
4 years, 1 month ago (2016-11-11 22:39:19 UTC) #63
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/2467873004/400001
4 years, 1 month ago (2016-11-11 22:41:17 UTC) #67
Lei Zhang
On 2016/11/11 22:39:19, bshe wrote: > dooh. You are absolutely right. It is Android only. ...
4 years, 1 month ago (2016-11-11 22:50:00 UTC) #68
commit-bot: I haz the power
Committed patchset #19 (id:400001)
4 years, 1 month ago (2016-11-12 00:25:26 UTC) #70
commit-bot: I haz the power
4 years, 1 month ago (2016-11-12 00:30:04 UTC) #72
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/0907c2d02be6980427e4ecc372c47985e7dddffd
Cr-Commit-Position: refs/heads/master@{#431699}

Powered by Google App Engine
This is Rietveld 408576698