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#include "SkRefCnt.h" 13 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: 24 static sk_sp<GrGpu> MakeGpu(GrContext*, const GrContextOptions&, void* device, void* queue); 25}; 26 27#endif 28 29