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

Issue 2730883003: Remove unnecessary UI element math. (Closed)

Created:
3 years, 9 months ago by cjgrant
Modified:
3 years, 9 months ago
Reviewers:
mthiesse, tiborg
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unnecessary UI element math. This change makes UI element computations more efficient by eliminating unncessary reverse-transform support. Remove other unused code along the way. BUG=None Review-Url: https://codereview.chromium.org/2730883003 Cr-Commit-Position: refs/heads/master@{#454912} Committed: https://chromium.googlesource.com/chromium/src/+/532c96fad9f5e4bcf277dfc5cffee840ca769001

Patch Set 1 #

Total comments: 8

Patch Set 2 : Remove more code. #

Total comments: 8

Patch Set 3 : Add comments to non-obvious methods. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -202 lines) Patch
M chrome/browser/android/vr_shell/ui_elements.h View 1 2 2 chunks +23 lines, -14 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements.cc View 1 chunk +44 lines, -31 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene.h View 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene.cc View 1 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_unittest.cc View 3 chunks +5 lines, -12 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_math.h View 1 2 chunks +2 lines, -21 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_math.cc View 1 3 chunks +4 lines, -79 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 6 chunks +33 lines, -33 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
cjgrant
3 years, 9 months ago (2017-03-03 21:24:56 UTC) #2
cjgrant
https://codereview.chromium.org/2730883003/diff/1/chrome/browser/android/vr_shell/ui_scene.cc File chrome/browser/android/vr_shell/ui_scene.cc (left): https://codereview.chromium.org/2730883003/diff/1/chrome/browser/android/vr_shell/ui_scene.cc#oldcode344 chrome/browser/android/vr_shell/ui_scene.cc:344: element->transform.Rotate(1.0f, 0.0f, 0.0f, screen_tilt); Whoa, this looks broken, and ...
3 years, 9 months ago (2017-03-03 21:30:34 UTC) #3
mthiesse
lgtm https://codereview.chromium.org/2730883003/diff/1/chrome/browser/android/vr_shell/ui_scene.cc File chrome/browser/android/vr_shell/ui_scene.cc (left): https://codereview.chromium.org/2730883003/diff/1/chrome/browser/android/vr_shell/ui_scene.cc#oldcode344 chrome/browser/android/vr_shell/ui_scene.cc:344: element->transform.Rotate(1.0f, 0.0f, 0.0f, screen_tilt); On 2017/03/03 21:30:34, cjgrant ...
3 years, 9 months ago (2017-03-06 17:26:07 UTC) #4
cjgrant
https://codereview.chromium.org/2730883003/diff/1/chrome/browser/android/vr_shell/ui_scene.cc File chrome/browser/android/vr_shell/ui_scene.cc (left): https://codereview.chromium.org/2730883003/diff/1/chrome/browser/android/vr_shell/ui_scene.cc#oldcode344 chrome/browser/android/vr_shell/ui_scene.cc:344: element->transform.Rotate(1.0f, 0.0f, 0.0f, screen_tilt); On 2017/03/03 21:30:34, cjgrant wrote: ...
3 years, 9 months ago (2017-03-06 17:43:35 UTC) #5
mthiesse
https://codereview.chromium.org/2730883003/diff/1/chrome/browser/android/vr_shell/ui_scene.cc File chrome/browser/android/vr_shell/ui_scene.cc (left): https://codereview.chromium.org/2730883003/diff/1/chrome/browser/android/vr_shell/ui_scene.cc#oldcode344 chrome/browser/android/vr_shell/ui_scene.cc:344: element->transform.Rotate(1.0f, 0.0f, 0.0f, screen_tilt); On 2017/03/06 17:43:34, cjgrant wrote: ...
3 years, 9 months ago (2017-03-06 17:46:00 UTC) #6
tiborg
https://codereview.chromium.org/2730883003/diff/20001/chrome/browser/android/vr_shell/ui_elements.cc File chrome/browser/android/vr_shell/ui_elements.cc (right): https://codereview.chromium.org/2730883003/diff/20001/chrome/browser/android/vr_shell/ui_elements.cc#newcode21 chrome/browser/android/vr_shell/ui_elements.cc:21: float* distance) { Check for null pointer? https://codereview.chromium.org/2730883003/diff/20001/chrome/browser/android/vr_shell/ui_elements.h File ...
3 years, 9 months ago (2017-03-06 17:51:44 UTC) #7
cjgrant
https://codereview.chromium.org/2730883003/diff/20001/chrome/browser/android/vr_shell/ui_elements.cc File chrome/browser/android/vr_shell/ui_elements.cc (right): https://codereview.chromium.org/2730883003/diff/20001/chrome/browser/android/vr_shell/ui_elements.cc#newcode21 chrome/browser/android/vr_shell/ui_elements.cc:21: float* distance) { On 2017/03/06 17:51:43, tiborg wrote: > ...
3 years, 9 months ago (2017-03-06 18:41:02 UTC) #8
cjgrant
https://codereview.chromium.org/2730883003/diff/20001/chrome/browser/android/vr_shell/ui_elements.h File chrome/browser/android/vr_shell/ui_elements.h (right): https://codereview.chromium.org/2730883003/diff/20001/chrome/browser/android/vr_shell/ui_elements.h#newcode66 chrome/browser/android/vr_shell/ui_elements.h:66: bool GetRayDistance(const gvr::Vec3f& ray_origin, On 2017/03/06 17:51:43, tiborg wrote: ...
3 years, 9 months ago (2017-03-06 18:41:47 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/2730883003/40001
3 years, 9 months ago (2017-03-06 18:42:25 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-06 19:20:57 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/532c96fad9f5e4bcf277dfc5cffe...

Powered by Google App Engine
This is Rietveld 408576698