| 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 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 228 |
| 229 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 229 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
| 230 std::unique_ptr<VrGLThread> gl_thread_; | 230 std::unique_ptr<VrGLThread> gl_thread_; |
| 231 bool thread_started_ = false; | 231 bool thread_started_ = false; |
| 232 UiInterface* ui_; | 232 UiInterface* ui_; |
| 233 bool reprojected_rendering_; | 233 bool reprojected_rendering_; |
| 234 | 234 |
| 235 jobject content_surface_ = nullptr; | 235 jobject content_surface_ = nullptr; |
| 236 bool taken_surface_ = false; | 236 bool taken_surface_ = false; |
| 237 base::CancelableClosure poll_capturing_media_task_; | 237 base::CancelableClosure poll_capturing_media_task_; |
| 238 bool is_capturing_audio_ = false; |
| 239 bool is_capturing_video_ = false; |
| 240 bool is_capturing_screen_ = false; |
| 238 | 241 |
| 239 // TODO(mthiesse): Remove the need for this to be stored here. | 242 // TODO(mthiesse): Remove the need for this to be stored here. |
| 240 // crbug.com/674594 | 243 // crbug.com/674594 |
| 241 gvr_context* gvr_api_; | 244 gvr_context* gvr_api_; |
| 242 | 245 |
| 243 // Are we currently providing a gamepad factory to the gamepad manager? | 246 // Are we currently providing a gamepad factory to the gamepad manager? |
| 244 bool gvr_gamepad_source_active_ = false; | 247 bool gvr_gamepad_source_active_ = false; |
| 245 bool cardboard_gamepad_source_active_ = false; | 248 bool cardboard_gamepad_source_active_ = false; |
| 246 | 249 |
| 247 // Registered fetchers, must remain alive for UpdateGamepadData calls. | 250 // Registered fetchers, must remain alive for UpdateGamepadData calls. |
| 248 // That's ok since the fetcher is only destroyed from VrShell's destructor. | 251 // That's ok since the fetcher is only destroyed from VrShell's destructor. |
| 249 device::GvrGamepadDataFetcher* gvr_gamepad_data_fetcher_ = nullptr; | 252 device::GvrGamepadDataFetcher* gvr_gamepad_data_fetcher_ = nullptr; |
| 250 device::CardboardGamepadDataFetcher* cardboard_gamepad_data_fetcher_ = | 253 device::CardboardGamepadDataFetcher* cardboard_gamepad_data_fetcher_ = |
| 251 nullptr; | 254 nullptr; |
| 252 int64_t cardboard_gamepad_timer_ = 0; | 255 int64_t cardboard_gamepad_timer_ = 0; |
| 253 | 256 |
| 254 base::WeakPtrFactory<VrShell> weak_ptr_factory_; | 257 base::WeakPtrFactory<VrShell> weak_ptr_factory_; |
| 255 | 258 |
| 256 DISALLOW_COPY_AND_ASSIGN(VrShell); | 259 DISALLOW_COPY_AND_ASSIGN(VrShell); |
| 257 }; | 260 }; |
| 258 | 261 |
| 259 bool RegisterVrShell(JNIEnv* env); | 262 bool RegisterVrShell(JNIEnv* env); |
| 260 | 263 |
| 261 } // namespace vr_shell | 264 } // namespace vr_shell |
| 262 | 265 |
| 263 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 266 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| OLD | NEW |