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 "include/core/SkRefCnt.h" 12 #include "include/gpu/GrTypes.h" 13 14 class GrDirectContext; 15 class GrGpu; 16 struct GrContextOptions; 17 struct GrMtlBackendContext; 18 19 /* 20 * This class is used to hold functions which trampoline from the Ganesh cpp code to the GrMtl 21 * objective-c files. 22 */ 23 class GrMtlTrampoline { 24 public: 25 static sk_sp<GrGpu> MakeGpu(const GrMtlBackendContext&, const GrContextOptions&, 26 GrDirectContext*); 27 }; 28 29 #endif 30 31