37 : fTextureCreated(
false)
38 , fMaskFilter(nullptr) {
50 if (fTextureCreated) {
54 constexpr int xSize = 16;
55 constexpr int ySize = 16;
60 for (
int y = 0;
y < ySize; ++
y) {
61 for (
int x = 0;
x < xSize; ++
x) {
73 fTextureCreated =
true;
105 paint.setAntiAlias(
true);
106 paint.setShader(fShader);
107 paint.setMaskFilter(fMaskFilter);
111 temp.
setLTRB(115, 75, 144, 110);
129 canvas->
drawString(
"M", 100.0f, 100.0f, font, paint2);
138 bool fTextureCreated;
142 using INHERITED =
GM;
147DEF_GM(
return new SamplerStressGM; )
@ kNormal_SkBlurStyle
fuzzy inside and outside
SK_API SkPMColor SkPreMultiplyColor(SkColor c)
constexpr SkColor SK_ColorGRAY
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorGREEN
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
void allocN32Pixels(int width, int height, bool isOpaque=false)
uint32_t * getAddr32(int x, int y) const
void clipPath(const SkPath &path, SkClipOp op, bool doAntiAlias)
void drawPath(const SkPath &path, const SkPaint &paint)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
void setStyle(Style style)
void setColor(SkColor color)
void setAntiAlias(bool aa)
@ kStroke_Style
set to stroke geometry
void setStrokeWidth(SkScalar width)
SkISize getISize() override
SkString getName() const override
void onDraw(SkCanvas *canvas) override
static constexpr SkISize Make(int32_t w, int32_t h)
void setLTRB(float left, float top, float right, float bottom)