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

Issue 2777633003: Avoid duplicate math when computing VR scene hierarchy. (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/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid duplicate math when computing VR scene hierarchy. When computing the transformations of UI elements in the scene, re-use the calculations done by parents when computing child element transforms. BUG=680253 Review-Url: https://codereview.chromium.org/2777633003 Cr-Commit-Position: refs/heads/master@{#459807} Committed: https://chromium.googlesource.com/chromium/src/+/5513e50629e5cb3d2bea187c6c8eaab7922c5fdf

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rever the inheritable transform getter for now - we can make a struct-to-class change later if we w… #

Total comments: 2

Patch Set 3 : s/GetTransform()/mutable_transform()/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -39 lines) Patch
M chrome/browser/android/vr_shell/ui_elements.h View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/ui_elements.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene.h View 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene.cc View 1 2 2 chunks +39 lines, -28 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (5 generated)
cjgrant
The Friday afternoon technical debt burn-down break.
3 years, 9 months ago (2017-03-24 20:44:57 UTC) #2
tiborg
https://codereview.chromium.org/2777633003/diff/1/chrome/browser/android/vr_shell/ui_elements.h File chrome/browser/android/vr_shell/ui_elements.h (right): https://codereview.chromium.org/2777633003/diff/1/chrome/browser/android/vr_shell/ui_elements.h#newcode89 chrome/browser/android/vr_shell/ui_elements.h:89: Transform* GetInheritableTransform() { return &inheritable_transform_; } Do we need ...
3 years, 9 months ago (2017-03-24 21:58:37 UTC) #3
cjgrant
https://codereview.chromium.org/2777633003/diff/1/chrome/browser/android/vr_shell/ui_elements.h File chrome/browser/android/vr_shell/ui_elements.h (right): https://codereview.chromium.org/2777633003/diff/1/chrome/browser/android/vr_shell/ui_elements.h#newcode89 chrome/browser/android/vr_shell/ui_elements.h:89: Transform* GetInheritableTransform() { return &inheritable_transform_; } On 2017/03/24 21:58:37, ...
3 years, 9 months ago (2017-03-27 14:07:52 UTC) #4
tiborg
https://codereview.chromium.org/2777633003/diff/1/chrome/browser/android/vr_shell/ui_elements.h File chrome/browser/android/vr_shell/ui_elements.h (right): https://codereview.chromium.org/2777633003/diff/1/chrome/browser/android/vr_shell/ui_elements.h#newcode89 chrome/browser/android/vr_shell/ui_elements.h:89: Transform* GetInheritableTransform() { return &inheritable_transform_; } On 2017/03/27 14:07:52, ...
3 years, 9 months ago (2017-03-27 14:30:18 UTC) #5
cjgrant
https://codereview.chromium.org/2777633003/diff/1/chrome/browser/android/vr_shell/ui_elements.h File chrome/browser/android/vr_shell/ui_elements.h (right): https://codereview.chromium.org/2777633003/diff/1/chrome/browser/android/vr_shell/ui_elements.h#newcode89 chrome/browser/android/vr_shell/ui_elements.h:89: Transform* GetInheritableTransform() { return &inheritable_transform_; } On 2017/03/27 14:30:18, ...
3 years, 9 months ago (2017-03-27 15:20:16 UTC) #6
tiborg
On 2017/03/27 15:20:16, cjgrant wrote: > https://codereview.chromium.org/2777633003/diff/1/chrome/browser/android/vr_shell/ui_elements.h > File chrome/browser/android/vr_shell/ui_elements.h (right): > > https://codereview.chromium.org/2777633003/diff/1/chrome/browser/android/vr_shell/ui_elements.h#newcode89 > ...
3 years, 9 months ago (2017-03-27 15:29:26 UTC) #7
mthiesse
lgtm https://codereview.chromium.org/2777633003/diff/20001/chrome/browser/android/vr_shell/ui_elements.h File chrome/browser/android/vr_shell/ui_elements.h (right): https://codereview.chromium.org/2777633003/diff/20001/chrome/browser/android/vr_shell/ui_elements.h#newcode62 chrome/browser/android/vr_shell/ui_elements.h:62: Transform* GetTransform() { return &transform_; } nit: maybe ...
3 years, 9 months ago (2017-03-27 15:31:16 UTC) #8
cjgrant
https://codereview.chromium.org/2777633003/diff/20001/chrome/browser/android/vr_shell/ui_elements.h File chrome/browser/android/vr_shell/ui_elements.h (right): https://codereview.chromium.org/2777633003/diff/20001/chrome/browser/android/vr_shell/ui_elements.h#newcode62 chrome/browser/android/vr_shell/ui_elements.h:62: Transform* GetTransform() { return &transform_; } On 2017/03/27 15:31:16, ...
3 years, 9 months ago (2017-03-27 15:58:25 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/2777633003/40001
3 years, 9 months ago (2017-03-27 15:58:57 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-27 17:09:55 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/5513e50629e5cb3d2bea187c6c8e...

Powered by Google App Engine
This is Rietveld 408576698