GrMtlTrampoline.h 600 B

12345678910111213141516171819202122232425262728
  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. #ifndef GrMtlTrampoline_DEFINED
  8. #define GrMtlTrampoline_DEFINED
  9. #include "include/core/SkRefCnt.h"
  10. #include "include/gpu/GrTypes.h"
  11. class GrContext;
  12. class GrGpu;
  13. struct GrContextOptions;
  14. /*
  15. * This class is used to hold functions which trampoline from the Ganesh cpp code to the GrMtl
  16. * objective-c files.
  17. */
  18. class GrMtlTrampoline {
  19. public:
  20. static sk_sp<GrGpu> MakeGpu(GrContext*, const GrContextOptions&, void* device, void* queue);
  21. };
  22. #endif