OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "device/vr/vr_device_manager.h" | 5 #include "device/vr/vr_device_manager.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "device/vr/features.h" | 13 #include "device/vr/features/features.h" |
14 | 14 |
15 #if defined(OS_ANDROID) | 15 #if defined(OS_ANDROID) |
16 #include "device/vr/android/gvr/gvr_device_provider.h" | 16 #include "device/vr/android/gvr/gvr_device_provider.h" |
17 #endif | 17 #endif |
18 | 18 |
19 #if BUILDFLAG(ENABLE_OPENVR) | 19 #if BUILDFLAG(ENABLE_OPENVR) |
20 #include "device/vr/openvr/openvr_device_provider.h" | 20 #include "device/vr/openvr/openvr_device_provider.h" |
21 #endif | 21 #endif |
22 | 22 |
23 namespace device { | 23 namespace device { |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 for (const auto& provider : providers_) | 199 for (const auto& provider : providers_) |
200 provider->PollEvents(); | 200 provider->PollEvents(); |
201 } | 201 } |
202 | 202 |
203 void VRDeviceManager::StopSchedulingPollEvents() { | 203 void VRDeviceManager::StopSchedulingPollEvents() { |
204 if (has_scheduled_poll_) | 204 if (has_scheduled_poll_) |
205 timer_.Stop(); | 205 timer_.Stop(); |
206 } | 206 } |
207 | 207 |
208 } // namespace device | 208 } // namespace device |
OLD | NEW |