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

Side by Side Diff: chrome/browser/android/vr_shell/vr_gl_thread.h

Issue 2891243002: VR: Loading DD controller model after GL is initialized (Closed)
Patch Set: doing texture patching on background task 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 15 matching lines...) Expand all
26 class VrGLThread : public base::Thread, 26 class VrGLThread : public base::Thread,
27 public UiInterface, 27 public UiInterface,
28 public VrBrowserInterface { 28 public VrBrowserInterface {
29 public: 29 public:
30 VrGLThread( 30 VrGLThread(
31 const base::WeakPtr<VrShell>& weak_vr_shell, 31 const base::WeakPtr<VrShell>& weak_vr_shell,
32 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner, 32 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner,
33 gvr_context* gvr_api, 33 gvr_context* gvr_api,
34 bool initially_web_vr, 34 bool initially_web_vr,
35 bool in_cct, 35 bool in_cct,
36 bool reprojected_rendering); 36 bool reprojected_rendering,
37 bool daydream_support);
37 38
38 ~VrGLThread() override; 39 ~VrGLThread() override;
39 base::WeakPtr<VrShellGl> GetVrShellGl() { return weak_vr_shell_gl_; } 40 base::WeakPtr<VrShellGl> GetVrShellGl() { return weak_vr_shell_gl_; }
40 base::WeakPtr<UiSceneManager> GetSceneManager() { 41 base::WeakPtr<UiSceneManager> GetSceneManager() {
41 return weak_scene_manager_; 42 return weak_scene_manager_;
42 } 43 }
43 44
44 // VrBrowserInterface implementation (VrShellGl calling to UI and VrShell). 45 // VrBrowserInterface implementation (VrShellGl calling to UI and VrShell).
45 void ContentSurfaceChanged(jobject surface) override; 46 void ContentSurfaceChanged(jobject surface) override;
46 void GvrDelegateReady() override; 47 void GvrDelegateReady() override;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 std::unique_ptr<VrShellGl> vr_shell_gl_; 85 std::unique_ptr<VrShellGl> vr_shell_gl_;
85 base::WeakPtr<VrShellGl> weak_vr_shell_gl_; 86 base::WeakPtr<VrShellGl> weak_vr_shell_gl_;
86 87
87 // This state is used for initializing vr_shell_gl_. 88 // This state is used for initializing vr_shell_gl_.
88 base::WeakPtr<VrShell> weak_vr_shell_; 89 base::WeakPtr<VrShell> weak_vr_shell_;
89 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 90 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
90 gvr_context* gvr_api_; 91 gvr_context* gvr_api_;
91 bool initially_web_vr_; 92 bool initially_web_vr_;
92 bool in_cct_; 93 bool in_cct_;
93 bool reprojected_rendering_; 94 bool reprojected_rendering_;
95 bool daydream_support_;
94 96
95 DISALLOW_COPY_AND_ASSIGN(VrGLThread); 97 DISALLOW_COPY_AND_ASSIGN(VrGLThread);
96 }; 98 };
97 99
98 } // namespace vr_shell 100 } // namespace vr_shell
99 101
100 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ 102 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_controller_model.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