• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16OSVersion GetMacOSVersion()
17{
18    OSVersion result;
19
20    NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];
21    result.majorVersion              = static_cast<int>(version.majorVersion);
22    result.minorVersion              = static_cast<int>(version.minorVersion);
23    result.patchVersion              = static_cast<int>(version.patchVersion);
24
25    return result;
26}
27
28}
29