44 constexpr float kScale = 2.0f;
54 canvas->
drawRect(clipRect1, whitePaint);
71 paint.setAntiAlias(
true);
81 inline static constexpr int kWidth = 1164;
82 inline static constexpr int kHeight = 802;
89DEF_GM(
return new BlurredClippedCircleGM;)
@ kNormal_SkBlurStyle
fuzzy inside and outside
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorWHITE
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
void clipRRect(const SkRRect &rrect, SkClipOp op, bool doAntiAlias)
static sk_sp< SkColorFilter > Blend(const SkColor4f &c, sk_sp< SkColorSpace >, SkBlendMode mode)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
void setColor(SkColor color)
void setAntiAlias(bool aa)
void setBlendMode(SkBlendMode mode)
static SkRRect MakeOval(const SkRect &oval)
SkString getName() const override
void onDraw(SkCanvas *canvas) override
SkISize getISize() override
GM(SkColor backgroundColor=SK_ColorWHITE)
clipRRect(r.rrect, r.opAA.op(), r.opAA.aa())) DRAW(ClipRect
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
static constexpr SkISize Make(int32_t w, int32_t h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)