1// 2// Copyright 2019 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// driver_utils_mac.mm : provides mac-specific information about current driver. 8 9#include "libANGLE/renderer/driver_utils.h" 10 11#import <Foundation/Foundation.h> 12 13namespace rx 14{ 15 16#if defined(ANGLE_PLATFORM_MACOS) 17OSVersion GetMacOSVersion() 18{ 19 OSVersion result; 20 21 NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion]; 22 result.majorVersion = static_cast<int>(version.majorVersion); 23 result.minorVersion = static_cast<int>(version.minorVersion); 24 result.patchVersion = static_cast<int>(version.patchVersion); 25 26 return result; 27} 28#endif 29} 30