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);
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)
GM(SkColor backgroundColor=SK_ColorWHITE)
SkISize getISize() override
SkString getName() const override
void onDraw(SkCanvas *canvas) override
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
font
Font Metadata and Metrics.
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
SkSamplingOptions(SkFilterMode::kLinear))
static constexpr SkISize Make(int32_t w, int32_t h)
void setLTRB(float left, float top, float right, float bottom)