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