Hash :
dea86294
Author :
Date :
2020-12-02T16:26:03
iOS build support libGLESv2 builds with these changes on iOS, iOS Simulator, and Mac Catalyst, using CGL or EAGL as appropriate. Tests will require more work. Fixed several errors in the EAGL code which hadn't been detected because the code wasn't built. Bug: angleproject:4256 Bug: angleproject:5417 Change-Id: I29072d82607ef2500732c5cc00318fdab4a46b31 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2570211 Reviewed-by: Kenneth Russell <kbr@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: James Darpinian <jdarpinian@chromium.org>
//
// Copyright 2020 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.
//
// SystemInfo_ios.cpp: implementation of the iOS-specific parts of SystemInfo.h
#include "common/platform.h"
#if defined(ANGLE_PLATFORM_IOS) || (defined(ANGLE_PLATFORM_MACCATALYST) && defined(ANGLE_CPU_ARM64))
# include "gpu_info_util/SystemInfo_internal.h"
namespace angle
{
bool GetSystemInfo_ios(SystemInfo *info)
{
{
// TODO(anglebug.com/4275): Get the actual system version and GPU info.
info->machineModelVersion = "0.0";
info->gpus.emplace_back();
info->gpus[0].vendorId = kVendorID_Apple;
}
return true;
}
} // namespace angle
#endif // defined(ANGLE_PLATFORM_IOS) || (defined(ANGLE_PLATFORM_MACCATALYST) &&
// defined(ANGLE_CPU_ARM64))