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