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

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

Issue 2950173002: VR: System indicator rework. (Closed)
Patch Set: Cleanup. Created 3 years, 6 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
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 ecfce2b8cfdd6e4921177adba43b68a3282ec2e9..1d51fb1b34741e886120c46b660eb5e0e889d9ce 100644
--- a/chrome/browser/android/vr_shell/vr_gl_thread.cc
+++ b/chrome/browser/android/vr_shell/vr_gl_thread.cc
@@ -131,6 +131,12 @@ void VrGLThread::ToggleCardboardGamepad(bool enabled) {
base::Bind(&VrShell::ToggleCardboardGamepad, weak_vr_shell_, enabled));
}
+void VrGLThread::OnGLInitialized() {
+ task_runner()->PostTask(
+ FROM_HERE,
+ base::Bind(&UiSceneManager::OnGLInitialized, weak_scene_manager_));
+}
+
void VrGLThread::OnUnsupportedMode(UiUnsupportedMode mode) {
main_thread_task_runner_->PostTask(
FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698