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

Issue 2814443004: Refactor VR math off of GVR types, onto gfx types where possible. (Closed)

Created:
3 years, 8 months ago by mthiesse
Modified:
3 years, 8 months ago
Reviewers:
acondor_, bajones, bshe, cjgrant
CC:
chromium-reviews, jam, feature-vr-reviews_chromium.org, darin-cc_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor VR math off of GVR types, onto gfx types where possible. This CL removes as much reliance on GVR types as possible, using gfx types where feasible, allowing us to reuse gfx math code. BUG= Review-Url: https://codereview.chromium.org/2814443004 Cr-Commit-Position: refs/heads/master@{#463758} Committed: https://chromium.googlesource.com/chromium/src/+/169bf5e0b403527a459c95bac5762a8190851589

Patch Set 1 #

Total comments: 26

Patch Set 2 : Address comments #

Patch Set 3 : ADdress comments + rebase #

Patch Set 4 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+981 lines, -963 lines) Patch
M chrome/browser/android/vr_shell/BUILD.gn View 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/android/vr_shell/non_presenting_gvr_delegate.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/non_presenting_gvr_delegate.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements.h View 1 2 5 chunks +19 lines, -20 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements.cc View 1 2 6 chunks +63 lines, -66 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements_unittest.cc View 1 2 8 chunks +28 lines, -27 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene.cc View 1 2 9 chunks +42 lines, -29 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_unittest.cc View 1 2 3 5 chunks +31 lines, -30 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_controller.h View 1 2 5 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_controller.cc View 1 2 11 chunks +59 lines, -88 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_util.h View 1 2 1 chunk +4 lines, -6 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_util.cc View 1 2 2 chunks +8 lines, -18 lines 0 comments Download
D chrome/browser/android/vr_shell/vr_math.h View 1 chunk +0 lines, -86 lines 0 comments Download
D chrome/browser/android/vr_shell/vr_math.cc View 1 chunk +0 lines, -250 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.h View 1 2 8 chunks +30 lines, -27 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 39 chunks +197 lines, -140 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_renderer.h View 1 2 10 chunks +22 lines, -16 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_renderer.cc View 1 2 7 chunks +14 lines, -13 lines 0 comments Download
M device/vr/BUILD.gn View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M device/vr/android/gvr/gvr_delegate.h View 1 2 1 chunk +15 lines, -11 lines 0 comments Download
M device/vr/android/gvr/gvr_delegate.cc View 1 2 8 chunks +57 lines, -73 lines 0 comments Download
M device/vr/android/gvr/gvr_device.cc View 2 chunks +6 lines, -15 lines 0 comments Download
M device/vr/android/gvr/gvr_gamepad_data_fetcher.cc View 1 2 3 chunks +13 lines, -13 lines 0 comments Download
M device/vr/android/gvr/gvr_gamepad_data_provider.h View 2 chunks +5 lines, -5 lines 0 comments Download
M device/vr/vr_export.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A device/vr/vr_math.h View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
A device/vr/vr_math.cc View 1 2 1 chunk +232 lines, -0 lines 0 comments Download
A device/vr/vr_types.h View 1 2 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (13 generated)
mthiesse
PTAL. No logic was changed. I've tried to verify everything still works and that there ...
3 years, 8 months ago (2017-04-11 00:04:07 UTC) #3
cjgrant
https://codereview.chromium.org/2814443004/diff/20001/chrome/browser/android/vr_shell/vr_controller.h File chrome/browser/android/vr_shell/vr_controller.h (right): https://codereview.chromium.org/2814443004/diff/20001/chrome/browser/android/vr_shell/vr_controller.h#newcode58 chrome/browser/android/vr_shell/vr_controller.h:58: void GetTransform(vr::Matf* out) const; Why not continue to return? ...
3 years, 8 months ago (2017-04-11 13:44:40 UTC) #6
cjgrant
On 2017/04/11 13:44:40, cjgrant wrote: > https://codereview.chromium.org/2814443004/diff/20001/chrome/browser/android/vr_shell/vr_controller.h > File chrome/browser/android/vr_shell/vr_controller.h (right): > > https://codereview.chromium.org/2814443004/diff/20001/chrome/browser/android/vr_shell/vr_controller.h#newcode58 > ...
3 years, 8 months ago (2017-04-11 14:07:11 UTC) #7
mthiesse
https://codereview.chromium.org/2814443004/diff/20001/chrome/browser/android/vr_shell/vr_controller.h File chrome/browser/android/vr_shell/vr_controller.h (right): https://codereview.chromium.org/2814443004/diff/20001/chrome/browser/android/vr_shell/vr_controller.h#newcode58 chrome/browser/android/vr_shell/vr_controller.h:58: void GetTransform(vr::Matf* out) const; On 2017/04/11 13:44:40, cjgrant wrote: ...
3 years, 8 months ago (2017-04-11 14:46:44 UTC) #8
cjgrant
lgtm
3 years, 8 months ago (2017-04-11 14:55:36 UTC) #9
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/2814443004/40001
3 years, 8 months ago (2017-04-11 14:57:34 UTC) #11
acondor_
I'm already late, but I have some comments. https://codereview.chromium.org/2814443004/diff/20001/chrome/browser/android/vr_shell/ui_elements.cc File chrome/browser/android/vr_shell/ui_elements.cc (right): https://codereview.chromium.org/2814443004/diff/20001/chrome/browser/android/vr_shell/ui_elements.cc#newcode69 chrome/browser/android/vr_shell/ui_elements.cc:69: const ...
3 years, 8 months ago (2017-04-11 15:00:00 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xcode-clang/builds/77281) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-11 15:01:15 UTC) #15
bajones
LGTM, though apparently it needs a rebase.
3 years, 8 months ago (2017-04-11 16:33:44 UTC) #16
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/2814443004/60001
3 years, 8 months ago (2017-04-11 19:01:29 UTC) #19
mthiesse
https://codereview.chromium.org/2814443004/diff/20001/chrome/browser/android/vr_shell/ui_elements.cc File chrome/browser/android/vr_shell/ui_elements.cc (right): https://codereview.chromium.org/2814443004/diff/20001/chrome/browser/android/vr_shell/ui_elements.cc#newcode69 chrome/browser/android/vr_shell/ui_elements.cc:69: const gfx::Vector3dF& translation = vr::GetTranslation(transform_.to_world); On 2017/04/11 15:00:00, acondor ...
3 years, 8 months ago (2017-04-11 19:21:06 UTC) #20
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/2814443004/80001
3 years, 8 months ago (2017-04-11 19:32:56 UTC) #23
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 20:47:12 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/169bf5e0b403527a459c95bac576...

Powered by Google App Engine
This is Rietveld 408576698