|
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
Total comments: 11
|
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:
Total messages: 16 (6 generated)
|