32 : fTileSize(tileSize) {
40 paint.setAntiAlias(
true);
44 fTileSize / 2, fTileSize / 2),
paint);
47 canvas->
drawLine(fTileSize / 2, fTileSize * 1 / 3,
48 fTileSize / 2, fTileSize * 2 / 3,
paint);
49 canvas->
drawLine(fTileSize * 1 / 3, fTileSize / 2,
50 fTileSize * 2 / 3, fTileSize / 2,
paint);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
void drawTile(SkCanvas *canvas)
void onDraw(SkCanvas *canvas) override
SkString getName() const override
PictureShaderCacheGM(SkScalar tileSize)
void onOnceBeforeDraw() override
SkISize getISize() override
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
static sk_sp< SkColorSpace > MakeRGB(const skcms_TransferFunction &transferFn, const skcms_Matrix3x3 &toXYZ)
@ kFill_Style
set to fill geometry
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, SkFilterMode mode, const SkMatrix *localMatrix, const SkRect *tileRect) const
GM(SkColor backgroundColor=SK_ColorWHITE)
static constexpr skcms_TransferFunction kSRGB
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
static constexpr SkISize Make(int32_t w, int32_t h)
static SkImageInfo MakeN32Premul(int width, int height)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeWH(float w, float h)