23 sk_cfp<id<MTLDevice>>
device;
24#ifdef SK_BUILD_FOR_MAC
25 sk_cfp<NSArray<id <MTLDevice>>*> availableDevices(MTLCopyAllDevices());
27 for (id<MTLDevice> dev in availableDevices.get()) {
28 if (!dev.isLowPower) {
34 if (dev.isRemovable) {
40 device.reset(MTLCreateSystemDefaultDevice());
43 device.reset(MTLCreateSystemDefaultDevice());
50 return std::unique_ptr<GraphiteTestContext>(
new MtlTestContext(backendContext));
skgpu::graphite::MtlBackendContext fMtl
static std::unique_ptr< GraphiteTestContext > Make()
std::unique_ptr< skgpu::graphite::Context > makeContext(const TestOptions &) override
skgpu::ContextType contextType() override
SK_API std::unique_ptr< Context > MakeMetal(const MtlBackendContext &, const ContextOptions &)
bool fStoreContextRefInRecorder
ContextOptionsPriv * fOptionsPriv
sk_cfp< CFTypeRef > fDevice
sk_cfp< CFTypeRef > fQueue