Greg Daniel | e5ddff5 | 2017-07-05 16:49:36 -0400 | [diff] [blame] | 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 | #ifndef GrMtlTrampoline_DEFINED |
| 9 | #define GrMtlTrampoline_DEFINED |
| 10 | |
| 11 | #include "GrTypes.h" |
Brian Salomon | 384fab4 | 2017-12-07 12:33:05 -0500 | [diff] [blame] | 12 | #include "SkRefCnt.h" |
Greg Daniel | e5ddff5 | 2017-07-05 16:49:36 -0400 | [diff] [blame] | 13 | |
| 14 | class GrContext; |
| 15 | class GrGpu; |
| 16 | struct 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 | */ |
| 22 | class GrMtlTrampoline { |
| 23 | public: |
Robert Phillips | e42edcc | 2017-12-13 11:50:22 -0500 | [diff] [blame] | 24 | static sk_sp<GrGpu> MakeGpu(GrContext*, const GrContextOptions&, void* device, void* queue); |
Greg Daniel | e5ddff5 | 2017-07-05 16:49:36 -0400 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | #endif |
| 28 | |