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 12class GrRecordingContext; 13class SkSurface; 14template <typename T> class sk_sp; 15 16sk_sp<SkSurface> SkMtkViewToSurface(MTKView*, GrRecordingContext*); 17 18GrContextHolder SkMetalDeviceToGrContext(id<MTLDevice>, id<MTLCommandQueue>); 19 20void SkMtkViewConfigForSkia(MTKView*); 21 22#endif // SkMetalViewBridge_DEFINED 23