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 #include "chrome/browser/android/vr_shell/vr_shell.h" | 5 #include "chrome/browser/android/vr_shell/vr_shell.h" |
6 | 6 |
7 #include <android/native_window_jni.h> | 7 #include <android/native_window_jni.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/android/jni_string.h" | 12 #include "base/android/jni_string.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "base/message_loop/message_loop.h" |
14 #include "base/metrics/histogram_macros.h" | 15 #include "base/metrics/histogram_macros.h" |
15 #include "base/threading/platform_thread.h" | 16 #include "base/threading/platform_thread.h" |
16 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
17 #include "base/threading/thread_restrictions.h" | 18 #include "base/threading/thread_restrictions.h" |
18 #include "base/threading/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
19 #include "base/trace_event/trace_event.h" | 20 #include "base/trace_event/trace_event.h" |
20 #include "base/values.h" | 21 #include "base/values.h" |
21 #include "chrome/browser/android/tab_android.h" | 22 #include "chrome/browser/android/tab_android.h" |
22 #include "chrome/browser/android/vr_shell/android_ui_gesture_target.h" | 23 #include "chrome/browser/android/vr_shell/android_ui_gesture_target.h" |
23 #include "chrome/browser/android/vr_shell/ui_interface.h" | 24 #include "chrome/browser/android/vr_shell/ui_interface.h" |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 jlong gvr_api, | 571 jlong gvr_api, |
571 jboolean reprojected_rendering) { | 572 jboolean reprojected_rendering) { |
572 return reinterpret_cast<intptr_t>(new VrShell( | 573 return reinterpret_cast<intptr_t>(new VrShell( |
573 env, obj, reinterpret_cast<ui::WindowAndroid*>(window_android), | 574 env, obj, reinterpret_cast<ui::WindowAndroid*>(window_android), |
574 for_web_vr, in_cct, | 575 for_web_vr, in_cct, |
575 VrShellDelegate::GetNativeVrShellDelegate(env, delegate), | 576 VrShellDelegate::GetNativeVrShellDelegate(env, delegate), |
576 reinterpret_cast<gvr_context*>(gvr_api), reprojected_rendering)); | 577 reinterpret_cast<gvr_context*>(gvr_api), reprojected_rendering)); |
577 } | 578 } |
578 | 579 |
579 } // namespace vr_shell | 580 } // namespace vr_shell |
OLD | NEW |