1 // Copyright 2020 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 SkiaContext_DEFINED 4 #define SkiaContext_DEFINED 5 6 #include "tools/skottie_ios_app/SkottieViewController.h" 7 8 #import <UIKit/UIKit.h> 9 10 @interface SkiaContext : NSObject 11 - (UIView*) makeViewWithController:(SkiaViewController*)vc withFrame:(CGRect)frame; 12 - (SkiaViewController*) getViewController:(UIView*)view; 13 @end 14 15 SkiaContext* MakeSkiaMetalContext(); 16 17 SkiaContext* MakeSkiaGLContext(); 18 19 SkiaContext* MakeSkiaUIContext(); 20 #endif // SkiaContext_DEFINED 21