1 // Copyright 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef DEVICE_VR_ANDROID_ARCORE_ARCORE_SHIM_H_
6 #define DEVICE_VR_ANDROID_ARCORE_ARCORE_SHIM_H_
7 
8 #include <string>
9 
10 #include "base/component_export.h"
11 
12 namespace vr {
13 
14 // TODO(https://crbug.com/917526): add support for unloading the SDK.
15 COMPONENT_EXPORT(VR_ARCORE) bool LoadArCoreSdk(const std::string& libraryPath);
16 
17 // Determines whether AR Core features are supported.
18 // TODO(https://crbug.com/924380): Currently, this is very simplistic. It should
19 // consider whether the device can support ARCore.
20 // Calling this method won't load AR Core SDK and does not depend on AR Core SDK
21 // to be loaded.
22 // Returns true if the AR Core usage is supported, false otherwise.
23 COMPONENT_EXPORT(VR_ARCORE) bool IsArCoreSupported();
24 
25 }  // namespace vr
26 
27 #endif  // DEVICE_VR_ANDROID_ARCORE_ARCORE_SHIM_H_
28