blob: b301b96e364452d088e4da3d316a0926b613c2b7 [file] [log] [blame]
//
// Copyright 2020 Apple, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// SystemInfo_apple.cpp: implementation of the Apple-specific parts of SystemInfo.h
#import "common/platform.h"
#if defined(ANGLE_PLATFORM_APPLE)
# import <Foundation/Foundation.h>
# import <dispatch/dispatch.h>
# import "gpu_info_util/SystemInfo_internal.h"
namespace angle
{
bool GetSystemInfo(SystemInfo *info)
{
# if defined(ANGLE_PLATFORM_MACOS) || defined(ANGLE_PLATFORM_MACCATALYST)
return GetSystemInfo_mac(info);
# else
return GetSystemInfo_ios(info);
# endif
}
} // namespace angle
#endif // defined(ANGLE_PLATFORM_APPLE)