25 {
26 constexpr float kBlurSigmas[] = { 0.0, 0.3f, 0.5f, 2.0f, 32.0f, 80.0f };
27 const char* kTestStrings[] = {
28 "The quick`~",
29 "brown fox[]",
30 "jumped over",
31 "the lazy@#$",
32 "dog.{}!%^&",
33 "*()+=-\\'\"/",
34 };
35 constexpr int sigmaCount =
std::size(kBlurSigmas);
36 constexpr int testStringCount =
std::size(kTestStrings);
40
43
44 for (
int x = 0;
x < sigmaCount;
x++) {
46 for (
int y = 0;
y < sigmaCount;
y++) {
48
51 canvas->saveLayer(
nullptr, &
paint);
52
56 for (
int i = 0;
i < testStringCount;
i++) {
57 canvas->drawString(kTestStrings[
i],
61 textPaint);
62 }
63 canvas->restore();
64 }
65 }
66}
@ kAlias
no transparent pixels on glyph edges
static sk_sp< SkImageFilter > Blur(SkScalar sigmaX, SkScalar sigmaY, SkTileMode tileMode, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
void setColor(SkColor color)
uint32_t nextBits(unsigned bitCount)
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
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
font
Font Metadata and Metrics.