• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright 2020 The ANGLE Project Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
6
7// SystemInfo_apple.cpp: implementation of the Apple-specific parts of SystemInfo.h
8
9#import "common/platform.h"
10
11#if defined(ANGLE_PLATFORM_APPLE)
12
13#    import <Foundation/Foundation.h>
14#    import <dispatch/dispatch.h>
15#    import "gpu_info_util/SystemInfo_internal.h"
16
17namespace angle
18{
19
20bool GetSystemInfo(SystemInfo *info)
21{
22#    if defined(ANGLE_PLATFORM_MACOS) || defined(ANGLE_PLATFORM_MACCATALYST)
23    return GetSystemInfo_mac(info);
24#    else
25    return GetSystemInfo_ios(info);
26#    endif
27}
28
29}  // namespace angle
30
31#endif  // defined(ANGLE_PLATFORM_APPLE)
32