Remove Metal support on older OSes.

SkSL now requires the array<> feature in MSL, so practically we no
longer support OS versions older than iOS 10.0 and MacOS 10.13. And
because of the shader compilation issues we are no longer testing nor
can we recommend running on MacOS 10.13, so this minimum version is
bumped up to MacOS 10.14.

Bug: skia:10777
Change-Id: I76d9eab4baa1631656d4b10b9ba6c126866b4530
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/401816
Reviewed-by: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
This commit is contained in:
Jim Van Verth 2021-04-27 12:23:53 -04:00 committed by Skia Commit-Bot
parent b2497ddd0e
commit 38162b5955
2 changed files with 7 additions and 4 deletions

View File

@ -6,6 +6,9 @@ This file includes a list of high level updates for each milestone release.
Milestone 92
------------
* Metal support has been removed for versions of iOS older than 10.0 and MacOS older than 10.14.
https://review.skia.org/401816
* Removed custom attributes from SkVertices and the corresponding `varying` feature from
SkRuntimeEffect.
https://review.skia.org/398222

View File

@ -112,13 +112,13 @@ sk_sp<GrGpu> GrMtlGpu::Make(const GrMtlBackendContext& context, const GrContextO
if (@available(macOS 10.14, iOS 10.0, *)) {
// no warning needed
} else {
SkDebugf("*** Warning ***: this OS version is deprecated and will no longer be supported " \
"in future releases.\n");
SkDebugf("*** Error ***: Skia's Metal backend no longer supports this OS version.\n");
#ifdef SK_BUILD_FOR_IOS
SkDebugf("Minimum recommended version is iOS 10.0.\n");
SkDebugf("Minimum supported version is iOS 10.0.\n");
#else
SkDebugf("Minimum recommended version is MacOS 10.14.\n");
SkDebugf("Minimum supported version is MacOS 10.14.\n");
#endif
return nullptr;
}
id<MTLDevice> GR_NORETAIN device = (__bridge id<MTLDevice>)(context.fDevice.get());