blob: 85f67b061c1e711d7ed7a50ed39c574f2d50c706 [file] [log] [blame]
/*
* 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 "src/gpu/mtl/GrMtlTrampoline.h"
#include "src/gpu/mtl/GrMtlGpu.h"
#if !__has_feature(objc_arc)
#error This file must be compiled with Arc. Use -fobjc-arc flag
#endif
sk_sp<GrGpu> GrMtlTrampoline::MakeGpu(GrContext* context,
const GrContextOptions& options,
void* device,
void* queue) {
return GrMtlGpu::Make(context,
options,
(__bridge id<MTLDevice>)device,
(__bridge id<MTLCommandQueue>)queue);
}