Flutter Engine
The Flutter Engine
|
#include <SkMatrixPriv.h>
Public Types | |
enum | { kMaxFlattenSize = 9 * sizeof(SkScalar) + sizeof(uint32_t) } |
typedef SkMatrix::MapXYProc | MapXYProc |
typedef SkMatrix::MapPtsProc | MapPtsProc |
Static Public Member Functions | |
static size_t | WriteToMemory (const SkMatrix &matrix, void *buffer) |
static size_t | ReadFromMemory (SkMatrix *matrix, const void *buffer, size_t length) |
static MapPtsProc | GetMapPtsProc (const SkMatrix &matrix) |
static MapXYProc | GetMapXYProc (const SkMatrix &matrix) |
static bool | InverseMapRect (const SkMatrix &mx, SkRect *dst, const SkRect &src) |
static void | MapPointsWithStride (const SkMatrix &mx, SkPoint pts[], size_t stride, int count) |
static void | MapPointsWithStride (const SkMatrix &mx, SkPoint dst[], size_t dstStride, const SkPoint src[], size_t srcStride, int count) |
static void | MapHomogeneousPointsWithStride (const SkMatrix &mx, SkPoint3 dst[], size_t dstStride, const SkPoint3 src[], size_t srcStride, int count) |
static bool | PostIDiv (SkMatrix *matrix, int divx, int divy) |
static bool | CheapEqual (const SkMatrix &a, const SkMatrix &b) |
static const SkScalar * | M44ColMajor (const SkM44 &m) |
static bool | IsScaleTranslateAsM33 (const SkM44 &m) |
static SkRect | MapRect (const SkM44 &m, const SkRect &r) |
static SkScalar | DifferentialAreaScale (const SkMatrix &m, const SkPoint &p) |
static bool | NearlyAffine (const SkMatrix &m, const SkRect &bounds, SkScalar tolerance=SK_ScalarNearlyZero) |
static SkScalar | ComputeResScaleForStroking (const SkMatrix &matrix) |
Definition at line 23 of file SkMatrixPriv.h.
typedef SkMatrix::MapPtsProc SkMatrixPriv::MapPtsProc |
Definition at line 39 of file SkMatrixPriv.h.
typedef SkMatrix::MapXYProc SkMatrixPriv::MapXYProc |
Definition at line 38 of file SkMatrixPriv.h.
anonymous enum |
Enumerator | |
---|---|
kMaxFlattenSize |
Definition at line 25 of file SkMatrixPriv.h.
Definition at line 181 of file SkMatrixPriv.h.
Definition at line 1877 of file SkMatrix.cpp.
Definition at line 1786 of file SkMatrix.cpp.
|
inlinestatic |
Definition at line 42 of file SkMatrixPriv.h.
Definition at line 46 of file SkMatrixPriv.h.
|
inlinestatic |
Attempt to map the rect through the inverse of the matrix. If it is not invertible, then this returns false and dst is unchanged.
Definition at line 54 of file SkMatrixPriv.h.
|
inlinestatic |
Definition at line 185 of file SkMatrixPriv.h.
|
static |
Definition at line 1026 of file SkMatrix.cpp.
|
inlinestatic |
Maps src SkPoint array of length count to dst SkPoint array, skipping stride bytes to advance from one SkPoint to the next. Points are mapped by multiplying each SkPoint by SkMatrix. Given:
| A B C | | x | Matrix = | D E F |, src = | y | | G H I | | 1 |
each resulting dst SkPoint is computed as:
|A B C| |x| Ax+By+C Dx+Ey+F Matrix * pt = |D E F| |y| = |Ax+By+C Dx+Ey+F Gx+Hy+I| = ------- , ------- |G H I| |1| Gx+Hy+I Gx+Hy+I
mx | matrix used to map the points |
dst | storage for mapped points |
src | points to transform |
stride | size of record starting with SkPoint, in bytes |
count | number of points to transform |
Definition at line 161 of file SkMatrixPriv.h.
|
inlinestatic |
Maps count pts, skipping stride bytes to advance from one SkPoint to the next. Points are mapped by multiplying each SkPoint by SkMatrix. Given:
| A B C | | x | Matrix = | D E F |, pt = | y | | G H I | | 1 |
each resulting pts SkPoint is computed as:
|A B C| |x| Ax+By+C Dx+Ey+F Matrix * pt = |D E F| |y| = |Ax+By+C Dx+Ey+F Gx+Hy+I| = ------- , ------- |G H I| |1| Gx+Hy+I Gx+Hy+I
mx | matrix used to map the points |
pts | storage for mapped points |
stride | size of record starting with SkPoint, in bytes |
count | number of points to transform |
Definition at line 112 of file SkMatrixPriv.h.
Definition at line 216 of file SkM44.cpp.
|
static |
Definition at line 1820 of file SkMatrix.cpp.
Definition at line 177 of file SkMatrixPriv.h.
|
inlinestatic |
Definition at line 34 of file SkMatrixPriv.h.
|
inlinestatic |
Definition at line 30 of file SkMatrixPriv.h.