Definition at line 29 of file blurignorexform.cpp.
◆ DrawType
Enumerator |
---|
kCircle | |
kRect | |
kRRect | |
Definition at line 31 of file blurignorexform.cpp.
31 {
35 };
constexpr std::array< std::array< float, 2 >, 2 > kRect
◆ BlurIgnoreXformGM()
BlurIgnoreXformGM::BlurIgnoreXformGM |
( |
DrawType |
drawType | ) |
|
|
inline |
◆ drawOverlay()
void BlurIgnoreXformGM::drawOverlay |
( |
SkCanvas * |
canvas | ) |
|
|
inlineprotected |
Definition at line 105 of file blurignorexform.cpp.
105 {
109 for (
int i = 0;
i < kNumBlurs; ++
i) {
112 }
114 for (
auto scale : kMatrixScales) {
117 }
118 }
void translate(SkScalar dx, SkScalar dy)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
font
Font Metadata and Metrics.
◆ getISize()
SkISize BlurIgnoreXformGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString BlurIgnoreXformGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
Implements skiagm::GM.
Definition at line 42 of file blurignorexform.cpp.
42 {
44 name.printf(
"blur_ignore_xform_%s",
48 }
DEF_SWITCHES_START aot vmservice shared library name
◆ onDraw()
void BlurIgnoreXformGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 61 of file blurignorexform.cpp.
61 {
64 paint.setAntiAlias(
true);
65
69 for (
size_t i = 0;
i < kNumBlurs; ++
i) {
72 for (
auto scale : kMatrixScales) {
80
81 paint.setMaskFilter(fBlurFilters[
i]);
82 for (int j = 0; j < 2; ++j) {
84 canvas->
translate(10 * (1 - j), 10 * (1 - j));
89 } else {
91 }
92 paint.setMaskFilter(
nullptr);
94 }
97 }
98 }
102 }
103 }
constexpr SkColor SK_ColorBLACK
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
static SkRRect MakeRectXY(const SkRect &rect, SkScalar xRad, SkScalar yRad)
sk_sp< SkBlender > blender SkRect rect
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
◆ onOnceBeforeDraw()
void BlurIgnoreXformGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 52 of file blurignorexform.cpp.
52 {
53 for (
int i = 0;
i < kNumBlurs; ++
i) {
57 kBlurFlags[
i].fRespectCTM);
58 }
59 }
@ kNormal_SkBlurStyle
fuzzy inside and outside
static SkScalar SK_SPI ConvertRadiusToSigma(SkScalar radius)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
◆ runAsBench()
bool BlurIgnoreXformGM::runAsBench |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: