Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Matrix_decomposeScale |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Matrix_decomposeScale.cpp.
4 {
8 matrix.postScale(1.f / 4, 1.f / 2);
13 bool success =
matrix.decomposeScale(&
scale, &remaining);
14 SkDebugf(
"success: %s ", success ?
"true" :
"false");
20}
21}
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