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

Issue 2902393002: [vr] Bail on unhandled code points. (Closed)

Created:
3 years, 7 months ago by Ian Vollick
Modified:
3 years, 6 months ago
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[vr] Bail on unhandled code points. When we encounter a URL with glyphs we cannot render we now exit VR mode. This CL also establishes an "unsupported mode" enumeration and corresponding metrics. BUG=722861 Review-Url: https://codereview.chromium.org/2902393002 Cr-Commit-Position: refs/heads/master@{#475222} Committed: https://chromium.googlesource.com/chromium/src/+/3181fb56c2c8a939c082f4711c985b7123e0b3e8

Patch Set 1 #

Total comments: 9

Patch Set 2 : test #

Patch Set 3 : fix comment #

Patch Set 4 : histograms #

Total comments: 6

Patch Set 5 : . #

Total comments: 15

Patch Set 6 : address reviewer feedback #

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -40 lines) Patch
M chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/font_fallback.h View 1 2 1 chunk +13 lines, -5 lines 0 comments Download
M chrome/browser/android/vr_shell/font_fallback.cc View 1 3 chunks +19 lines, -12 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/exit_warning_texture.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/textures/insecure_content_transient_texture.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/textures/system_indicator_texture.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/textures/ui_texture.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/textures/ui_texture.cc View 1 2 3 4 2 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture.h View 1 2 3 4 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture.cc View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc View 1 2 3 4 5 6 4 chunks +63 lines, -5 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/url_bar.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/url_bar.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.cc View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/ui_unsupported_mode.h View 1 2 3 4 5 6 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_browser_interface.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (22 generated)
acondor_
https://codereview.chromium.org/2902393002/diff/1/chrome/browser/android/vr_shell/textures/ui_texture.cc File chrome/browser/android/vr_shell/textures/ui_texture.cc (right): https://codereview.chromium.org/2902393002/diff/1/chrome/browser/android/vr_shell/textures/ui_texture.cc#newcode172 chrome/browser/android/vr_shell/textures/ui_texture.cc:172: // This happens a lot? GetFallbackFontNameForChar assumes that the ...
3 years, 7 months ago (2017-05-25 15:51:42 UTC) #3
cjgrant
https://codereview.chromium.org/2902393002/diff/1/chrome/browser/android/vr_shell/textures/ui_texture.cc File chrome/browser/android/vr_shell/textures/ui_texture.cc (right): https://codereview.chromium.org/2902393002/diff/1/chrome/browser/android/vr_shell/textures/ui_texture.cc#newcode165 chrome/browser/android/vr_shell/textures/ui_texture.cc:165: bool UiTexture::CheckFontList(int size, base::string16 text) { I thought this ...
3 years, 7 months ago (2017-05-25 17:47:25 UTC) #5
Ian Vollick
https://codereview.chromium.org/2902393002/diff/1/chrome/browser/android/vr_shell/textures/ui_texture.cc File chrome/browser/android/vr_shell/textures/ui_texture.cc (right): https://codereview.chromium.org/2902393002/diff/1/chrome/browser/android/vr_shell/textures/ui_texture.cc#newcode165 chrome/browser/android/vr_shell/textures/ui_texture.cc:165: bool UiTexture::CheckFontList(int size, base::string16 text) { On 2017/05/25 17:47:24, ...
3 years, 7 months ago (2017-05-26 03:48:10 UTC) #10
cjgrant
lgtm See comments just in case they're useful. https://codereview.chromium.org/2902393002/diff/60001/chrome/browser/android/vr_shell/textures/url_bar_texture.cc File chrome/browser/android/vr_shell/textures/url_bar_texture.cc (right): https://codereview.chromium.org/2902393002/diff/60001/chrome/browser/android/vr_shell/textures/url_bar_texture.cc#newcode219 chrome/browser/android/vr_shell/textures/url_bar_texture.cc:219: gurl_render_texts_ ...
3 years, 7 months ago (2017-05-26 18:52:00 UTC) #11
Ian Vollick
https://codereview.chromium.org/2902393002/diff/60001/chrome/browser/android/vr_shell/textures/url_bar_texture.cc File chrome/browser/android/vr_shell/textures/url_bar_texture.cc (right): https://codereview.chromium.org/2902393002/diff/60001/chrome/browser/android/vr_shell/textures/url_bar_texture.cc#newcode219 chrome/browser/android/vr_shell/textures/url_bar_texture.cc:219: gurl_render_texts_ = PrepareDrawStringRect( On 2017/05/26 18:52:00, cjgrant wrote: > ...
3 years, 7 months ago (2017-05-26 20:20:28 UTC) #12
Ian Vollick
On 2017/05/26 20:20:28, Ian Vollick wrote: > https://codereview.chromium.org/2902393002/diff/60001/chrome/browser/android/vr_shell/textures/url_bar_texture.cc > File chrome/browser/android/vr_shell/textures/url_bar_texture.cc (right): > > https://codereview.chromium.org/2902393002/diff/60001/chrome/browser/android/vr_shell/textures/url_bar_texture.cc#newcode219 ...
3 years, 7 months ago (2017-05-26 20:26:17 UTC) #17
amp
lgtm https://codereview.chromium.org/2902393002/diff/80001/chrome/browser/android/vr_shell/font_fallback.h File chrome/browser/android/vr_shell/font_fallback.h (right): https://codereview.chromium.org/2902393002/diff/80001/chrome/browser/android/vr_shell/font_fallback.h#newcode25 chrome/browser/android/vr_shell/font_fallback.h:25: // The funtion, if it succeeds, sets |font_name|. ...
3 years, 7 months ago (2017-05-26 20:37:39 UTC) #19
Ilya Sherman
Metrics LGTM % nits: https://codereview.chromium.org/2902393002/diff/80001/chrome/browser/android/vr_shell/ui_unsupported_mode.h File chrome/browser/android/vr_shell/ui_unsupported_mode.h (right): https://codereview.chromium.org/2902393002/diff/80001/chrome/browser/android/vr_shell/ui_unsupported_mode.h#newcode10 chrome/browser/android/vr_shell/ui_unsupported_mode.h:10: // Ensure that this stays ...
3 years, 7 months ago (2017-05-26 22:19:51 UTC) #21
Mark P
https://codereview.chromium.org/2902393002/diff/80001/chrome/browser/android/vr_shell/ui_unsupported_mode.h File chrome/browser/android/vr_shell/ui_unsupported_mode.h (right): https://codereview.chromium.org/2902393002/diff/80001/chrome/browser/android/vr_shell/ui_unsupported_mode.h#newcode10 chrome/browser/android/vr_shell/ui_unsupported_mode.h:10: // Ensure that this stays in sync with VRUnsupportedMode ...
3 years, 7 months ago (2017-05-26 22:29:18 UTC) #22
Ian Vollick
https://codereview.chromium.org/2902393002/diff/80001/chrome/browser/android/vr_shell/ui_unsupported_mode.h File chrome/browser/android/vr_shell/ui_unsupported_mode.h (right): https://codereview.chromium.org/2902393002/diff/80001/chrome/browser/android/vr_shell/ui_unsupported_mode.h#newcode10 chrome/browser/android/vr_shell/ui_unsupported_mode.h:10: // Ensure that this stays in sync with VRUnsupportedMode ...
3 years, 7 months ago (2017-05-27 00:02:44 UTC) #23
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/2902393002/120001
3 years, 7 months ago (2017-05-27 00:03:36 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/348803)
3 years, 7 months ago (2017-05-27 00:13:46 UTC) #28
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/2902393002/120001
3 years, 6 months ago (2017-05-27 02:17:02 UTC) #33
commit-bot: I haz the power
3 years, 6 months ago (2017-05-27 02:34:54 UTC) #36
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/3181fb56c2c8a939c082f4711c98...

Powered by Google App Engine
This is Rietveld 408576698