You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
669 B

// 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