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

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: Add comment 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 | « no previous file | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c120f7dcaf71fd8096ade70b3f532f66e0ae860b 100644
--- a/chrome/browser/android/vr_shell/vr_shell.h
+++ b/chrome/browser/android/vr_shell/vr_shell.h
@@ -166,7 +166,9 @@ class VrShell : public device::PresentingGvrDelegate,
private:
~VrShell() override;
- void PostToGlThreadWhenReady(const base::Closure& task);
+ void WaitForGlThread();
+ void PostToGlThread(const tracked_objects::Location& from_here,
+ const base::Closure& task);
void SetUiState();
// device::GvrDelegate implementation.
@@ -214,6 +216,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698