26 :(CGRect)rect {
28 static constexpr double kFrameRate = 1.0 / 30.0;
29 double next = [viewController isPaused] ? 0 : kFrameRate +
SkTime::GetNSecs() * 1e-9;
30 [super drawRect:rect];
31 CGSize
size = [
self bounds].size;
33 if (fBackBuffer.drawsNothing() || iSize != fBackBuffer.dimensions()) {
35 }
37 {
39 [viewController draw:rect toCanvas:&canvas atSize:size];
40 }
41 SkCGDrawBitmap(UIGraphicsGetCurrentContext(), fBackBuffer, 0, 0);
43 [NSTimer scheduledTimerWithTimeInterval:std::max(0.0, next - SkTime::GetNSecs() * 1e-9)
44 target:self
45 selector:@selector(setNeedsDisplay)
46 userInfo:nil
47 repeats:NO];
48 }
49}
static float next(float f)
constexpr SkColor SK_ColorTRANSPARENT
Type::kYUV Type::kRGBA() int(0.7 *637)
FlutterViewController * viewController
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size