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

Issue 2950173002: VR: System indicator rework. (Closed)

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

Description

VR: System indicator rework. Refactoring to make the indicators easier and cleaner to manage: - Use a single parameterized class for all indicators. - Change how indicator textures are drawn, such that we only need to specify height, and the widths are computed. - In general, allow textured elements to override how their world size is computed (rather than forcing all to compute height based on width). - Dynamically position the indicators according to which are showing. BUG= Review-Url: https://codereview.chromium.org/2950173002 Cr-Commit-Position: refs/heads/master@{#481696} Committed: https://chromium.googlesource.com/chromium/src/+/9f6167b0bd426ff61d54f54be51066873818c8b5

Patch Set 1 #

Patch Set 2 : Cleanup. #

Total comments: 11

Patch Set 3 : Address comments; increase size slightly for readability, now that position is dynamic. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -310 lines) Patch
M chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/android/vr_shell/gl_browser_interface.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/system_indicator_texture.cc View 2 chunks +4 lines, -3 lines 0 comments Download
D chrome/browser/android/vr_shell/ui_elements/audio_capture_indicator.h View 1 chunk +0 lines, -31 lines 0 comments Download
D chrome/browser/android/vr_shell/ui_elements/audio_capture_indicator.cc View 1 chunk +0 lines, -26 lines 0 comments Download
D chrome/browser/android/vr_shell/ui_elements/location_access_indicator.h View 1 chunk +0 lines, -31 lines 0 comments Download
D chrome/browser/android/vr_shell/ui_elements/location_access_indicator.cc View 1 chunk +0 lines, -24 lines 0 comments Download
D chrome/browser/android/vr_shell/ui_elements/screen_capture_indicator.h View 1 chunk +0 lines, -32 lines 0 comments Download
D chrome/browser/android/vr_shell/ui_elements/screen_capture_indicator.cc View 1 chunk +0 lines, -26 lines 0 comments Download
A chrome/browser/android/vr_shell/ui_elements/system_indicator.h View 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/ui_elements/system_indicator.cc View 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/textured_element.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/textured_element.cc View 2 chunks +9 lines, -3 lines 0 comments Download
D chrome/browser/android/vr_shell/ui_elements/video_capture_indicator.h View 1 chunk +0 lines, -31 lines 0 comments Download
D chrome/browser/android/vr_shell/ui_elements/video_capture_indicator.cc View 1 chunk +0 lines, -26 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.cc View 1 2 5 chunks +63 lines, -65 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (6 generated)
cjgrant
Amir, here's the indicator position and file cleanup. Biao, now that you are immersed in ...
3 years, 6 months ago (2017-06-21 21:12:10 UTC) #2
asimjour1
Please modify the commit msg and add BUG=732812 https://codereview.chromium.org/2950173002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc File chrome/browser/android/vr_shell/ui_scene_manager.cc (right): https://codereview.chromium.org/2950173002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode227 chrome/browser/android/vr_shell/ui_scene_manager.cc:227: 512, ...
3 years, 6 months ago (2017-06-22 14:46:00 UTC) #3
cjgrant
https://codereview.chromium.org/2950173002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc File chrome/browser/android/vr_shell/ui_scene_manager.cc (right): https://codereview.chromium.org/2950173002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode227 chrome/browser/android/vr_shell/ui_scene_manager.cc:227: 512, kIndicatorHeight, indicator.icon, indicator.resource_string); On 2017/06/22 14:46:00, asimjour1 wrote: ...
3 years, 6 months ago (2017-06-22 15:51:40 UTC) #4
amp
naming nit https://codereview.chromium.org/2950173002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc File chrome/browser/android/vr_shell/ui_scene_manager.cc (right): https://codereview.chromium.org/2950173002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode72 chrome/browser/android/vr_shell/ui_scene_manager.cc:72: static constexpr float kIndicatorHeight = 0.0625; Does ...
3 years, 6 months ago (2017-06-22 18:34:43 UTC) #6
cjgrant
https://codereview.chromium.org/2950173002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc File chrome/browser/android/vr_shell/ui_scene_manager.cc (right): https://codereview.chromium.org/2950173002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode75 chrome/browser/android/vr_shell/ui_scene_manager.cc:75: static constexpr float kIndicatorZOffset = 0.1; On 2017/06/22 18:34:43, ...
3 years, 6 months ago (2017-06-22 19:16:33 UTC) #7
asimjour1
lgtm with nit https://codereview.chromium.org/2950173002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc File chrome/browser/android/vr_shell/ui_scene_manager.cc (right): https://codereview.chromium.org/2950173002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode227 chrome/browser/android/vr_shell/ui_scene_manager.cc:227: 512, kIndicatorHeight, indicator.icon, indicator.resource_string); On 2017/06/22 ...
3 years, 6 months ago (2017-06-22 19:18:36 UTC) #8
amp
lgtm I'm just bikeshedding at this point, feel free to ignore the nits in naming. ...
3 years, 6 months ago (2017-06-22 20:36:23 UTC) #9
cjgrant
https://codereview.chromium.org/2950173002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc File chrome/browser/android/vr_shell/ui_scene_manager.cc (right): https://codereview.chromium.org/2950173002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode75 chrome/browser/android/vr_shell/ui_scene_manager.cc:75: static constexpr float kIndicatorZOffset = 0.1; On 2017/06/22 20:36:22, ...
3 years, 6 months ago (2017-06-22 20:58:11 UTC) #10
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/2950173002/40001
3 years, 6 months ago (2017-06-22 20:58:49 UTC) #13
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 22:46:49 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/9f6167b0bd426ff61d54f54be510...

Powered by Google App Engine
This is Rietveld 408576698