12345678910111213141516171819202122232425 |
- /*
- * Copyright 2017 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
- #include "src/gpu/mtl/GrMtlTrampoline.h"
- #include "src/gpu/mtl/GrMtlGpu.h"
- #if !__has_feature(objc_arc)
- #error This file must be compiled with Arc. Use -fobjc-arc flag
- #endif
- sk_sp<GrGpu> GrMtlTrampoline::MakeGpu(GrContext* context,
- const GrContextOptions& options,
- void* device,
- void* queue) {
- return GrMtlGpu::Make(context,
- options,
- (__bridge id<MTLDevice>)device,
- (__bridge id<MTLCommandQueue>)queue);
- }
|