Hash :
2a668d92
Author :
Date :
2021-07-13T16:49:16
Fix iOS Simulator build after direct-to-Metal upstreaming. Bug: angleproject:5505 Change-Id: I4e690099502be2f2404a25d67356d452cf63451b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3025240 Reviewed-by: Cody Northrop <cnorthrop@google.com> Reviewed-by: Yuly Novikov <ynovikov@chromium.org> Commit-Queue: Cody Northrop <cnorthrop@google.com>
//
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// GPUTestConfig_iOS.mm:
// Helper functions for GPUTestConfig that have to be compiled in ObjectiveC++
#include "GPUTestConfig_ios.h"
#include "common/apple_platform_utils.h"
#import <Foundation/Foundation.h>
namespace angle
{
void GetOperatingSystemVersionNumbers(int32_t *majorVersion, int32_t *minorVersion)
{
NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];
*majorVersion = static_cast<int32_t>(version.majorVersion);
*minorVersion = static_cast<int32_t>(version.minorVersion);
}
} // namespace angle