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 "src/gpu/mtl/GrMtlTrampoline.h"
9
10#include "src/gpu/mtl/GrMtlGpu.h"
11
12#if !__has_feature(objc_arc)
13#error This file must be compiled with Arc. Use -fobjc-arc flag
14#endif
15
16sk_sp<GrGpu> GrMtlTrampoline::MakeGpu(GrContext* context,
17                                      const GrContextOptions& options,
18                                      void* device,
19                                      void* queue) {
20    return GrMtlGpu::Make(context,
21                          options,
22                          (__bridge id<MTLDevice>)device,
23                          (__bridge id<MTLCommandQueue>)queue);
24}
25
26