xref: /aosp_15_r20/external/skia/tools/skottie_ios_app/SkiaViewController.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1*c8dee2aaSAndroid Build Coastguard Worker // Copyright 2019 Google LLC.
2*c8dee2aaSAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3*c8dee2aaSAndroid Build Coastguard Worker #ifndef SkiaViewController_DEFINED
4*c8dee2aaSAndroid Build Coastguard Worker #define SkiaViewController_DEFINED
5*c8dee2aaSAndroid Build Coastguard Worker 
6*c8dee2aaSAndroid Build Coastguard Worker class SkCanvas;
7*c8dee2aaSAndroid Build Coastguard Worker 
8*c8dee2aaSAndroid Build Coastguard Worker #import <CoreGraphics/CoreGraphics.h>
9*c8dee2aaSAndroid Build Coastguard Worker #import <Foundation/Foundation.h>
10*c8dee2aaSAndroid Build Coastguard Worker 
11*c8dee2aaSAndroid Build Coastguard Worker // An interface that draws to a Skia canvas.
12*c8dee2aaSAndroid Build Coastguard Worker @interface SkiaViewController : NSObject
13*c8dee2aaSAndroid Build Coastguard Worker - (void)draw:(CGRect)rect toCanvas:(SkCanvas*)canvas atSize:(CGSize)size;
14*c8dee2aaSAndroid Build Coastguard Worker 
15*c8dee2aaSAndroid Build Coastguard Worker // Return the current paused state.  Implementations should override.
16*c8dee2aaSAndroid Build Coastguard Worker - (bool)isPaused;
17*c8dee2aaSAndroid Build Coastguard Worker 
18*c8dee2aaSAndroid Build Coastguard Worker // Change the paused state.  Implementations should override.
19*c8dee2aaSAndroid Build Coastguard Worker - (void)togglePaused;
20*c8dee2aaSAndroid Build Coastguard Worker @end
21*c8dee2aaSAndroid Build Coastguard Worker #endif  // SkiaViewController_DEFINED
22