blob: e6dffa606cf6b2ae3c288fd616a5c92b5f59a121 [file] [log] [blame]
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrMtlTrampoline_DEFINED
#define GrMtlTrampoline_DEFINED
#include "include/core/SkRefCnt.h"
#include "include/gpu/GrTypes.h"
class GrDirectContext;
class GrGpu;
struct GrContextOptions;
struct GrMtlBackendContext;
/*
* This class is used to hold functions which trampoline from the Ganesh cpp code to the GrMtl
* objective-c files.
*/
class GrMtlTrampoline {
public:
static sk_sp<GrGpu> MakeGpu(const GrMtlBackendContext&, const GrContextOptions&,
GrDirectContext*);
};
#endif