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_SHELL_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 std::unique_ptr<gvr::BufferViewport> buffer_viewport_; | 98 std::unique_ptr<gvr::BufferViewport> buffer_viewport_; |
99 std::unique_ptr<gvr::SwapChain> swap_chain_; | 99 std::unique_ptr<gvr::SwapChain> swap_chain_; |
100 | 100 |
101 gvr::Mat4f view_matrix_; | 101 gvr::Mat4f view_matrix_; |
102 gvr::Mat4f projection_matrix_; | 102 gvr::Mat4f projection_matrix_; |
103 | 103 |
104 gvr::Mat4f head_pose_; | 104 gvr::Mat4f head_pose_; |
105 gvr::Vec3f forward_vector_; | 105 gvr::Vec3f forward_vector_; |
106 | 106 |
107 gvr::Sizei render_size_; | 107 gvr::Sizei render_size_; |
| 108 float cursor_distance_; |
108 | 109 |
109 std::unique_ptr<VrCompositor> content_compositor_view_; | 110 std::unique_ptr<VrCompositor> content_compositor_view_; |
110 content::ContentViewCore* content_cvc_; | 111 content::ContentViewCore* content_cvc_; |
111 | 112 |
112 std::unique_ptr<VrShellRenderer> vr_shell_renderer_; | 113 std::unique_ptr<VrShellRenderer> vr_shell_renderer_; |
113 base::android::ScopedJavaGlobalRef<jobject> j_vr_shell_; | 114 base::android::ScopedJavaGlobalRef<jobject> j_vr_shell_; |
114 | 115 |
115 gvr::Quatf controller_quat_; | 116 gvr::Quatf controller_quat_; |
116 bool controller_active_ = false; | 117 bool controller_active_ = false; |
117 gvr::Vec3f look_at_vector_; | 118 gvr::Vec3f look_at_vector_; |
118 | 119 |
119 bool webvr_mode_ = false; | 120 bool webvr_mode_ = false; |
120 | 121 |
121 DISALLOW_COPY_AND_ASSIGN(VrShell); | 122 DISALLOW_COPY_AND_ASSIGN(VrShell); |
122 }; | 123 }; |
123 | 124 |
124 bool RegisterVrShell(JNIEnv* env); | 125 bool RegisterVrShell(JNIEnv* env); |
125 | 126 |
126 } // namespace vr_shell | 127 } // namespace vr_shell |
127 | 128 |
128 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 129 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
OLD | NEW |