OLD | NEW |
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 28 matching lines...) Expand all Loading... |
39 bool in_cct, | 39 bool in_cct, |
40 bool reprojected_rendering, | 40 bool reprojected_rendering, |
41 bool daydream_support); | 41 bool daydream_support); |
42 | 42 |
43 ~VrGLThread() override; | 43 ~VrGLThread() override; |
44 base::WeakPtr<VrShellGl> GetVrShellGl() { return weak_vr_shell_gl_; } | 44 base::WeakPtr<VrShellGl> GetVrShellGl() { return weak_vr_shell_gl_; } |
45 base::WeakPtr<UiSceneManager> GetSceneManager() { | 45 base::WeakPtr<UiSceneManager> GetSceneManager() { |
46 return weak_scene_manager_; | 46 return weak_scene_manager_; |
47 } | 47 } |
48 | 48 |
49 // GlBrowserInterface implementation (VrShellGl calling to VrShell). | 49 // GlBrowserInterface implementation (VrShellGl calling out to UI/VrShell). |
50 void ContentSurfaceChanged(jobject surface) override; | 50 void ContentSurfaceChanged(jobject surface) override; |
51 void GvrDelegateReady(gvr::ViewerType viewer_type) override; | 51 void GvrDelegateReady(gvr::ViewerType viewer_type) override; |
52 void UpdateGamepadData(device::GvrGamepadData) override; | 52 void UpdateGamepadData(device::GvrGamepadData) override; |
53 void AppButtonClicked() override; | 53 void AppButtonClicked() override; |
54 void AppButtonGesturePerformed(UiInterface::Direction direction) override; | 54 void AppButtonGesturePerformed(UiInterface::Direction direction) override; |
55 void ProcessContentGesture( | 55 void ProcessContentGesture( |
56 std::unique_ptr<blink::WebInputEvent> event) override; | 56 std::unique_ptr<blink::WebInputEvent> event) override; |
57 void ForceExitVr() override; | 57 void ForceExitVr() override; |
58 void RunVRDisplayInfoCallback( | 58 void RunVRDisplayInfoCallback( |
59 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, | 59 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, |
60 device::mojom::VRDisplayInfoPtr* info) override; | 60 device::mojom::VRDisplayInfoPtr* info) override; |
61 void OnContentPaused(bool enabled) override; | 61 void OnContentPaused(bool enabled) override; |
62 void ToggleCardboardGamepad(bool enabled) override; | 62 void ToggleCardboardGamepad(bool enabled) override; |
| 63 void OnGLInitialized() override; |
63 | 64 |
64 // UiBrowserInterface implementation (UI calling to VrShell). | 65 // UiBrowserInterface implementation (UI calling to VrShell). |
65 void ExitPresent() override; | 66 void ExitPresent() override; |
66 void ExitFullscreen() override; | 67 void ExitFullscreen() override; |
67 void NavigateBack() override; | 68 void NavigateBack() override; |
68 void ExitCct() override; | 69 void ExitCct() override; |
69 void OnUnsupportedMode(UiUnsupportedMode mode) override; | 70 void OnUnsupportedMode(UiUnsupportedMode mode) override; |
70 | 71 |
71 // UiInterface implementation (VrShell and GL calling to the UI). | 72 // UiInterface implementation (VrShell and GL calling to the UI). |
72 void SetFullscreen(bool enabled) override; | 73 void SetFullscreen(bool enabled) override; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 bool in_cct_; | 108 bool in_cct_; |
108 bool reprojected_rendering_; | 109 bool reprojected_rendering_; |
109 bool daydream_support_; | 110 bool daydream_support_; |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(VrGLThread); | 112 DISALLOW_COPY_AND_ASSIGN(VrGLThread); |
112 }; | 113 }; |
113 | 114 |
114 } // namespace vr_shell | 115 } // namespace vr_shell |
115 | 116 |
116 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ | 117 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ |
OLD | NEW |