Greg Daniel | e5ddff5 | 2017-07-05 16:49:36 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #include "GrMtlTrampoline.h" |
| 9 | |
| 10 | #include "GrMtlGpu.h" |
| 11 | |
Brian Salomon | 384fab4 | 2017-12-07 12:33:05 -0500 | [diff] [blame^] | 12 | sk_sp<GrGpu> GrMtlTrampoline::MakeGpu(GrContext* context, |
| 13 | const GrContextOptions& options, |
| 14 | void* device, |
| 15 | void* queue) { |
| 16 | return GrMtlGpu::Make(context, |
| 17 | options, |
| 18 | (__bridge_transfer id<MTLDevice>)device, |
| 19 | (__bridge_transfer id<MTLCommandQueue>)queue); |
Greg Daniel | e5ddff5 | 2017-07-05 16:49:36 -0400 | [diff] [blame] | 20 | } |
| 21 | |