skia2/experimental/skottie_ios/SkottieMtkView.h
Hal Canary 4119443532 experimental/skottie_ios: Skottie iOS/Metal App
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>
2019-09-16 19:10:24 +00:00

20 lines
511 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 SkottieMtkView_DEFINED
#define SkottieMtkView_DEFINED
#import <MetalKit/MetalKit.h>
#import <UIKit/UIKit.h>
class GrContext;
@interface SkottieMtkView : MTKView
@property (assign) GrContext* grContext; // non-owning pointer.
- (void)drawRect:(CGRect)rect;
- (BOOL)loadAnimation:(NSData*)d;
- (CGSize)size;
- (BOOL)togglePaused;
@end
#endif // SkottieMtkView_DEFINED