blob: 516ac52fe0bb7c536eb0077ab62579dda2ce999a [file] [log] [blame]
Greg Daniele5ddff52017-07-05 16:49:36 -04001/*
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 Salomon384fab42017-12-07 12:33:05 -050012sk_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 Daniele5ddff52017-07-05 16:49:36 -040020}
21