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

Unified Diff: chrome/browser/android/vr_shell/vr_gl_thread.cc

Issue 2914543002: [vr] Bail on unhandled code points. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/vr_shell/vr_gl_thread.h ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_gl_thread.cc
diff --git a/chrome/browser/android/vr_shell/vr_gl_thread.cc b/chrome/browser/android/vr_shell/vr_gl_thread.cc
index e4b1407530127507a6473a0f4064b8cc751293f5..795cce1bced09cefb25f5a76bd869271e5fadd78 100644
--- a/chrome/browser/android/vr_shell/vr_gl_thread.cc
+++ b/chrome/browser/android/vr_shell/vr_gl_thread.cc
@@ -128,6 +128,12 @@ void VrGLThread::ToggleCardboardGamepad(bool enabled) {
base::Bind(&VrShell::ToggleCardboardGamepad, weak_vr_shell_, enabled));
}
+void VrGLThread::OnUnsupportedMode(UiUnsupportedMode mode) {
+ main_thread_task_runner_->PostTask(
+ FROM_HERE,
+ base::Bind(&VrShell::ExitVrDueToUnsupportedMode, weak_vr_shell_, mode));
+}
+
void VrGLThread::SetFullscreen(bool enabled) {
WaitUntilThreadStarted();
task_runner()->PostTask(FROM_HERE, base::Bind(&UiSceneManager::SetFullscreen,
« no previous file with comments | « chrome/browser/android/vr_shell/vr_gl_thread.h ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698