1cb93a386Sopenharmony_ci/* 2cb93a386Sopenharmony_ci * Copyright 2017 Google Inc. 3cb93a386Sopenharmony_ci * 4cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be 5cb93a386Sopenharmony_ci * found in the LICENSE file. 6cb93a386Sopenharmony_ci */ 7cb93a386Sopenharmony_ci 8cb93a386Sopenharmony_ci#ifndef GrMtlTrampoline_DEFINED 9cb93a386Sopenharmony_ci#define GrMtlTrampoline_DEFINED 10cb93a386Sopenharmony_ci 11cb93a386Sopenharmony_ci#include "include/core/SkRefCnt.h" 12cb93a386Sopenharmony_ci#include "include/gpu/GrTypes.h" 13cb93a386Sopenharmony_ci 14cb93a386Sopenharmony_ciclass GrDirectContext; 15cb93a386Sopenharmony_ciclass GrGpu; 16cb93a386Sopenharmony_cistruct GrContextOptions; 17cb93a386Sopenharmony_cistruct GrMtlBackendContext; 18cb93a386Sopenharmony_ci 19cb93a386Sopenharmony_ci/* 20cb93a386Sopenharmony_ci * This class is used to hold functions which trampoline from the Ganesh cpp code to the GrMtl 21cb93a386Sopenharmony_ci * objective-c files. 22cb93a386Sopenharmony_ci */ 23cb93a386Sopenharmony_ciclass GrMtlTrampoline { 24cb93a386Sopenharmony_cipublic: 25cb93a386Sopenharmony_ci static sk_sp<GrGpu> MakeGpu(const GrMtlBackendContext&, const GrContextOptions&, 26cb93a386Sopenharmony_ci GrDirectContext*); 27cb93a386Sopenharmony_ci}; 28cb93a386Sopenharmony_ci 29cb93a386Sopenharmony_ci#endif 30cb93a386Sopenharmony_ci 31