33 const float blurRadii[kNumBlurs] = {1.f, 5.f, 10.f, 20.f};
35 for (
int i = 0;
i < kNumBlurs; ++
i) {
43 canvas->
scale(1.5f, 1.5f);
46 const float circleRadii[] = {5.f, 10.f, 25.f, 50.f};
48 for (
size_t i = 0;
i < kNumBlurs; ++
i) {
51 for (
size_t j = 0; j <
std::size(circleRadii); ++j) {
54 paint.setMaskFilter(fBlurFilters[
i]);
67 inline static constexpr int kNumBlurs = 4;
@ kNormal_SkBlurStyle
fuzzy inside and outside
constexpr SkColor SK_ColorBLACK
void onOnceBeforeDraw() override
bool runAsBench() const override
SkISize getISize() override
void onDraw(SkCanvas *canvas) override
SkString getName() const override
static SkScalar SK_SPI ConvertRadiusToSigma(SkScalar radius)
void translate(SkScalar dx, SkScalar dy)
void rotate(SkScalar degrees)
void scale(SkScalar sx, SkScalar sy)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
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
static constexpr SkISize Make(int32_t w, int32_t h)