13#if !__has_feature(objc_arc)
14#error This file must be compiled with Arc. Use -fobjc-arc flag
20 if (@available(macOS 10.14, iOS 12.0, tvOS 12.0, *)) {
21 id<MTLEvent>
event = [gpu->
device() newEvent];
31 if (@available(macOS 10.14, iOS 12.0, tvOS 12.0, *)) {
32 id<MTLEvent>
mtlEvent = (__bridge_transfer id<MTLEvent>)
event;
43 if (@available(macOS 10.14, iOS 12.0, tvOS 12.0, *)) {
id< MTLEvent > mtlEvent() const SK_API_AVAILABLE(macos(10.14)
static sk_sp< GrMtlEvent > Make(GrMtlGpu *gpu)
static sk_sp< GrMtlEvent > MakeWrapped(GrMTLHandle event)
id< MTLDevice > device() const
GrBackendSemaphore backendSemaphore() const override
SK_API GrBackendSemaphore MakeMtl(GrMTLHandle event, uint64_t value)