blob: 516ac52fe0bb7c536eb0077ab62579dda2ce999a [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 "GrMtlTrampoline.h"
#include "GrMtlGpu.h"
sk_sp<GrGpu> GrMtlTrampoline::MakeGpu(GrContext* context,
const GrContextOptions& options,
void* device,
void* queue) {
return GrMtlGpu::Make(context,
options,
(__bridge_transfer id<MTLDevice>)device,
(__bridge_transfer id<MTLCommandQueue>)queue);
}