Home | History | Annotate | Download | only in mtl
      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:
     23     static GrGpu* CreateGpu(GrContext* context,
     24                             const GrContextOptions& options,
     25                             void* device,
     26                             void* queue);
     27 };
     28 
     29 #endif
     30 
     31