Definition at line 26 of file blurredclippedcircle.cpp.
◆ BlurredClippedCircleGM()
skiagm::BlurredClippedCircleGM::BlurredClippedCircleGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize skiagm::BlurredClippedCircleGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString skiagm::BlurredClippedCircleGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void skiagm::BlurredClippedCircleGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 37 of file blurredclippedcircle.cpp.
37 {
42
43
44 constexpr float kScale = 2.0f;
45 canvas->
scale(kScale, kScale);
46
50
52
54 canvas->
drawRect(clipRect1, whitePaint);
55
57
61
64
66
69 1.366025f));
71 paint.setAntiAlias(
true);
72
74
78 }
@ 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)
clipRRect(r.rrect, r.opAA.op(), r.opAA.aa())) DRAW(ClipRect
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
The documentation for this class was generated from the following file: