blob: 227c643d42bc9dce4822a28867d4b62a7ca7c6bb [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"
Brian Salomon384fab42017-12-07 12:33:05 -050012#include "SkRefCnt.h"
Greg Daniele5ddff52017-07-05 16:49:36 -040013
14class GrContext;
15class GrGpu;
16struct GrContextOptions;
17
18/*
19 * This class is used to hold functions which trampoline from the Ganesh cpp code to the GrMtl
20 * objective-c files.
21 */
22class GrMtlTrampoline {
23public:
Robert Phillipse42edcc2017-12-13 11:50:22 -050024 static sk_sp<GrGpu> MakeGpu(GrContext*, const GrContextOptions&, void* device, void* queue);
Greg Daniele5ddff52017-07-05 16:49:36 -040025};
26
27#endif
28