4119443532
To use, see instructions in experimental/skottie_ios/README.md . No-Try: true Change-Id: I4fb71576c5e38c7776d14561930b8c2598cfb48f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/240284 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com>
20 lines
546 B
Objective-C
20 lines
546 B
Objective-C
// 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
|
|
|
|
#import <MetalKit/MetalKit.h>
|
|
|
|
class SkSurface;
|
|
class GrContext;
|
|
class GrContextOptions;
|
|
template <typename T> class sk_sp;
|
|
|
|
sk_sp<SkSurface> SkMtkViewToSurface(MTKView*, GrContext*);
|
|
|
|
sk_sp<GrContext> SkMetalDeviceToGrContext(id<MTLDevice>, const GrContextOptions&);
|
|
|
|
void SkMtkViewConfigForSkia(MTKView*);
|
|
|
|
#endif // SkMetalViewBridge_DEFINED
|