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

Unified Diff: chrome/browser/android/vr_shell/vr_shell.h

Issue 2893623002: VR: Make sure GL thread is started before binding callbacks to it. (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
Index: chrome/browser/android/vr_shell/vr_shell.h
diff --git a/chrome/browser/android/vr_shell/vr_shell.h b/chrome/browser/android/vr_shell/vr_shell.h
index 1837b884cc58f59d80331f350fc4c987a9925632..31db7e8230297d8efc31d9b0d5ea6db9e3659b9d 100644
--- a/chrome/browser/android/vr_shell/vr_shell.h
+++ b/chrome/browser/android/vr_shell/vr_shell.h
@@ -166,7 +166,8 @@ class VrShell : public device::PresentingGvrDelegate,
private:
~VrShell() override;
- void PostToGlThreadWhenReady(const base::Closure& task);
+ void WaitForGlThread();
+ void PostToGlThread(const base::Closure& task);
void SetUiState();
// device::GvrDelegate implementation.
@@ -214,6 +215,7 @@ class VrShell : public device::PresentingGvrDelegate,
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
std::unique_ptr<VrGLThread> gl_thread_;
+ bool thread_started_ = false;
UiInterface* ui_;
bool reprojected_rendering_;
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | chrome/browser/android/vr_shell/vr_shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698