blob: 531a4ce00cf02fe212564506ebae0db4fca102b1 [file] [log] [blame]
Greg Daniele5ddff52017-07-05 16:49:36 -04001/*
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#ifndef GrMtlTrampoline_DEFINED
9#define GrMtlTrampoline_DEFINED
10
11#include "GrTypes.h"
12
13class GrContext;
14class GrGpu;
15struct GrContextOptions;
16
17/*
18 * This class is used to hold functions which trampoline from the Ganesh cpp code to the GrMtl
19 * objective-c files.
20 */
21class GrMtlTrampoline {
22public:
Greg Danielb76a72a2017-07-13 15:07:54 -040023 static GrGpu* CreateGpu(GrContext* context,
24 const GrContextOptions& options,
25 void* device,
26 void* queue);
Greg Daniele5ddff52017-07-05 16:49:36 -040027};
28
29#endif
30