Flutter Engine
The Flutter Engine
SkiaViewController.mm
Go to the documentation of this file.
1// Copyright 2019 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
5
8
9@implementation SkiaViewController {}
10- (bool)isPaused { return false; }
11- (void)togglePaused {}
12- (void)draw:(CGRect)rect toCanvas:(SkCanvas*)canvas atSize:(CGSize)size {
13 // Fill with pink.
14 canvas->clear(SkColorSetARGB(255, 255, 192, 203));
15}
16@end
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
Definition: SkColor.h:49
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
void clear(SkColor color)
Definition: SkCanvas.h:1199