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 12sk_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); 20} 21 22