xref: /aosp_15_r20/external/skia/src/gpu/ganesh/mtl/GrMtlTrampoline.mm (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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 "src/gpu/ganesh/mtl/GrMtlTrampoline.h"
9
10#include "src/gpu/ganesh/mtl/GrMtlGpu.h"
11
12#if !__has_feature(objc_arc)
13#error This file must be compiled with Arc. Use -fobjc-arc flag
14#endif
15
16GR_NORETAIN_BEGIN
17
18std::unique_ptr<GrGpu> GrMtlTrampoline::MakeGpu(const GrMtlBackendContext& backendContext,
19                                                const GrContextOptions& options,
20                                                GrDirectContext* direct) {
21    return GrMtlGpu::Make(backendContext, options, direct);
22}
23
24GR_NORETAIN_END
25