1 // Copyright 2019 Google LLC.
2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3 #ifndef SkMetalViewBridge_DEFINED
4 #define SkMetalViewBridge_DEFINED
5 
6 #include "tools/skottie_ios_app/GrContextHolder.h"
7 
8 #import <MetalKit/MetalKit.h>
9 
10 #include <memory>
11 
12 class GrRecordingContext;
13 class SkSurface;
14 template <typename T> class sk_sp;
15 
16 sk_sp<SkSurface> SkMtkViewToSurface(MTKView*, GrRecordingContext*);
17 
18 GrContextHolder SkMetalDeviceToGrContext(id<MTLDevice>, id<MTLCommandQueue>);
19 
20 void SkMtkViewConfigForSkia(MTKView*);
21 
22 #endif  // SkMetalViewBridge_DEFINED
23