• Home
  • History
  • Annotate
  • 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_ios.cpp: implementation of the iOS-specific parts of SystemInfo.h
8 
9 #include "common/platform.h"
10 
11 #if defined(ANGLE_PLATFORM_IOS) || (defined(ANGLE_PLATFORM_MACCATALYST) && defined(ANGLE_CPU_ARM64))
12 
13 #    include "gpu_info_util/SystemInfo_internal.h"
14 
15 namespace angle
16 {
17 
GetSystemInfo_ios(SystemInfo * info)18 bool GetSystemInfo_ios(SystemInfo *info)
19 {
20     {
21         // TODO(anglebug.com/4275): Get the actual system version and GPU info.
22         info->machineModelVersion = "0.0";
23         GPUDeviceInfo deviceInfo;
24         deviceInfo.vendorId = kVendorID_Apple;
25         info->gpus.push_back(deviceInfo);
26     }
27 
28     return true;
29 }
30 
31 }  // namespace angle
32 
33 #endif  // defined(ANGLE_PLATFORM_IOS) || (defined(ANGLE_PLATFORM_MACCATALYST) &&
34         // defined(ANGLE_CPU_ARM64))
35