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" |
| 12 | |
| 13 | class GrContext; |
| 14 | class GrGpu; |
| 15 | struct 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 | */ |
| 21 | class GrMtlTrampoline { |
| 22 | public: |
Greg Daniel | b76a72a | 2017-07-13 15:07:54 -0400 | [diff] [blame] | 23 | static GrGpu* CreateGpu(GrContext* context, |
| 24 | const GrContextOptions& options, |
| 25 | void* device, |
| 26 | void* queue); |
Greg Daniel | e5ddff5 | 2017-07-05 16:49:36 -0400 | [diff] [blame] | 27 | }; |
| 28 | |
| 29 | #endif |
| 30 | |