aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/mtl/GrMtlTrampoline.mm
blob: 0f112e4da550f3b9a1a00f239a952592d42c71a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * 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 "GrMtlTrampoline.h"

#include "GrMtlGpu.h"

GrGpu* GrMtlTrampoline::CreateGpu(GrContext* context,
                                  const GrContextOptions& options,
                                  void* device,
                                  void* queue) {
    return GrMtlGpu::Create(context,
                            options,
                            (__bridge_transfer id<MTLDevice>)device,
                            (__bridge_transfer id<MTLCommandQueue>)queue);
}