blob: 73c94acad112921e706515ba25d8680d4f512b6f [file] [log] [blame]
// 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 SkiaViewController_DEFINED
#define SkiaViewController_DEFINED
class SkCanvas;
#import <CoreGraphics/CoreGraphics.h>
#import <Foundation/Foundation.h>
// An interface that draws to a Skia canvas.
@interface SkiaViewController : NSObject
- (void)draw:(CGRect)rect toCanvas:(SkCanvas*)canvas atSize:(CGSize)size;
// Return the current paused state. Implementations should override.
- (bool)isPaused;
// Change the paused state. Implementations should override.
- (void)togglePaused;
@end
#endif // SkiaViewController_DEFINED