4REG_FIDDLE(Matrix_decomposeScale, 256, 256,
true, 0) {
8 matrix.postScale(1.f / 4, 1.f / 2);
13 bool success =
matrix.decomposeScale(&
scale, &remaining);
14 SkDebugf(
"success: %s ", success ?
"true" :
"false");
REG_FIDDLE(Matrix_decomposeScale, 256, 256, true, 0)
static void scaleMatrix(const SkPath &one, const SkPath &two, SkMatrix &scale)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
static SkMatrix Scale(SkScalar sx, SkScalar sy)
static SkMatrix Concat(const SkMatrix &a, const SkMatrix &b)
unsigned useCenter Optional< SkMatrix > matrix