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.h

Issue 2809143004: VR: Add a native UI element scene manager (Closed)
Patch Set: Rebase. Created 3 years, 8 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.h
diff --git a/chrome/browser/android/vr_shell/vr_gl_thread.h b/chrome/browser/android/vr_shell/vr_gl_thread.h
index 4eb27d063fc17421115e5040e016065bbd91a5da..9e35938f3b427a7c9aa092ddaf9468bc8c226b84 100644
--- a/chrome/browser/android/vr_shell/vr_gl_thread.h
+++ b/chrome/browser/android/vr_shell/vr_gl_thread.h
@@ -15,6 +15,8 @@
namespace vr_shell {
+class UiScene;
+class UiSceneManager;
class VrShell;
class VrShellGl;
@@ -29,6 +31,9 @@ class VrGLThread : public base::Thread {
~VrGLThread() override;
base::WeakPtr<VrShellGl> GetVrShellGl() { return weak_vr_shell_gl_; }
+ base::WeakPtr<UiSceneManager> GetSceneManager() {
+ return weak_scene_manager_;
+ }
protected:
void Init() override;
@@ -36,6 +41,9 @@ class VrGLThread : public base::Thread {
private:
// Created on GL thread.
+ std::unique_ptr<UiScene> scene_;
+ std::unique_ptr<UiSceneManager> scene_manager_;
+ base::WeakPtr<UiSceneManager> weak_scene_manager_;
std::unique_ptr<VrShellGl> vr_shell_gl_;
base::WeakPtr<VrShellGl> weak_vr_shell_gl_;
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager.cc ('k') | chrome/browser/android/vr_shell/vr_gl_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698