29 paint.setAntiAlias(
true);
32 return surface->makeImageSnapshot();
45 paint.setShader(redLocalMatrixShader);
53 paint.setShader(blueLocalMatrixShader);
56 canvas->translate(100.0f, 0.0f);
76 ->makeWithLocalMatrix(
m));
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
static bool rotate(const SkDCubic &cubic, int zero, int index, SkDCubic &rotPath)
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
static SkMatrix Scale(SkScalar sx, SkScalar sy)
static SkMatrix Translate(SkScalar dx, SkScalar dy)
sk_sp< SkShader > makeWithLocalMatrix(const SkMatrix &) const
SkImage * isAImage(SkMatrix *localMatrix, SkTileMode xy[2]) const
static sk_sp< SkImage > make_image(SkCanvas *rootCanvas, SkColor color)
DEF_SIMPLE_GM(localmatriximageshader, canvas, 250, 250)
unsigned useCenter Optional< SkMatrix > matrix
sk_sp< const SkImage > image
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
SkSamplingOptions(SkFilterMode::kLinear))
static constexpr SkCubicResampler Mitchell()
static constexpr SkIRect MakeWH(int32_t w, int32_t h)
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, 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)