42 scale.setScale(0.5f, 0.5f);
43 scale.postTranslate(5.f, 5.f);
50 center0, (pts[1].fX - pts[0].fX) / 2,
57 SkString getName()
const override {
return SkString(
"simpleblurroundrect"); }
59 SkISize getISize()
override {
return {1000, 500}; }
61 bool runAsBench()
const override {
return true; }
63 void onDraw(
SkCanvas* canvas)
override {
64 canvas->
scale(1.5f, 1.5f);
67 const float blurRadii[] = { 1,5,10,20 };
68 const int cornerRadii[] = { 1,5,10,20 };
73 for (
size_t j = 0; j <
std::size(cornerRadii); ++j) {
74 for (
int k = 0; k <= 1; k++) {
112 for (
int i = 0;
i < 4; ++
i) {
119 canvas->rotate(90.f, 150.f, 150.f);
@ kNormal_SkBlurStyle
fuzzy inside and outside
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorGREEN
#define SkScalarAve(a, b)
static SkScalar SkScalarInterp(SkScalar A, SkScalar B, SkScalar t)
static constexpr bool SkToBool(const T &x)
DEF_SIMPLE_GM(blur_large_rrects, canvas, 300, 300)
static sk_sp< SkShader > MakeRadial()
static SkScalar SK_SPI ConvertRadiusToSigma(SkScalar radius)
void translate(SkScalar dx, SkScalar dy)
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
static sk_sp< SkShader > MakeTwoPointConical(const SkPoint &start, SkScalar startRadius, const SkPoint &end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
static SkRRect MakeRectXY(const SkRect &rect, SkScalar xRad, SkScalar yRad)
void setRectXY(const SkRect &rect, SkScalar xRad, SkScalar yRad)
sk_sp< SkBlender > blender SkRect rect
PODArray< SkColor > colors
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
void set(float x, float y)
constexpr float height() const
constexpr float width() const
static constexpr SkRect MakeWH(float w, float h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)