2019-09-09 21:03:38 +00:00
|
|
|
// Copyright 2019 Google LLC.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
#ifndef SkMetalViewBridge_DEFINED
|
|
|
|
#define SkMetalViewBridge_DEFINED
|
|
|
|
|
2019-12-18 21:26:19 +00:00
|
|
|
#include "tools/skottie_ios_app/GrContextHolder.h"
|
|
|
|
|
2019-09-09 21:03:38 +00:00
|
|
|
#import <MetalKit/MetalKit.h>
|
|
|
|
|
2019-12-11 15:32:59 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2020-09-23 18:01:58 +00:00
|
|
|
class GrRecordingContext;
|
2019-09-09 21:03:38 +00:00
|
|
|
class SkSurface;
|
|
|
|
template <typename T> class sk_sp;
|
|
|
|
|
2020-09-23 18:01:58 +00:00
|
|
|
sk_sp<SkSurface> SkMtkViewToSurface(MTKView*, GrRecordingContext*);
|
2019-09-09 21:03:38 +00:00
|
|
|
|
2019-12-11 15:32:59 +00:00
|
|
|
GrContextHolder SkMetalDeviceToGrContext(id<MTLDevice>, id<MTLCommandQueue>);
|
2019-09-09 21:03:38 +00:00
|
|
|
|
|
|
|
void SkMtkViewConfigForSkia(MTKView*);
|
|
|
|
|
|
|
|
#endif // SkMetalViewBridge_DEFINED
|