8#ifndef SkMatrixPriv_DEFINE
9#define SkMatrixPriv_DEFINE
43 return SkMatrix::GetMapPtsProc(
matrix.getType());
47 return SkMatrix::GetMapXYProc(
matrix.getType());
73 if (sx < 0.f && sy < 0.f) {
74 inverted = skvx::shuffle<2, 3, 0, 1>(inverted);
75 }
else if (sx < 0.f) {
76 inverted = skvx::shuffle<2, 1, 0, 3>(inverted);
77 }
else if (sy < 0.f) {
78 inverted = skvx::shuffle<0, 3, 2, 1>(inverted);
81 inverted.store(&
dst->fLeft);
127 pts = (
SkPoint*)((intptr_t)pts + stride);
134 SkMatrix::MapXYProc proc = mx.getMapXYProc();
136 proc(mx, pts->
fX, pts->
fY, pts);
137 pts = (
SkPoint*)((intptr_t)pts + stride);
178 return matrix->postIDiv(divx, divy);
182 return &
a == &
b || 0 == memcmp(
a.fMat,
b.fMat,
sizeof(
a.fMat));
191 return m.rc(1,0) == 0 &&
m.rc(3,0) == 0 &&
192 m.rc(0,1) == 0 &&
m.rc(3,1) == 0 &&
#define SK_ScalarNearlyZero
static MapXYProc GetMapXYProc(const SkMatrix &matrix)
static MapPtsProc GetMapPtsProc(const SkMatrix &matrix)
static size_t WriteToMemory(const SkMatrix &matrix, void *buffer)
SkMatrix::MapXYProc MapXYProc
SkMatrix::MapPtsProc MapPtsProc
static SkRect MapRect(const SkM44 &m, const SkRect &r)
static bool CheapEqual(const SkMatrix &a, const SkMatrix &b)
static SkScalar DifferentialAreaScale(const SkMatrix &m, const SkPoint &p)
static const SkScalar * M44ColMajor(const SkM44 &m)
static void MapHomogeneousPointsWithStride(const SkMatrix &mx, SkPoint3 dst[], size_t dstStride, const SkPoint3 src[], size_t srcStride, int count)
static size_t ReadFromMemory(SkMatrix *matrix, const void *buffer, size_t length)
static bool IsScaleTranslateAsM33(const SkM44 &m)
static bool PostIDiv(SkMatrix *matrix, int divx, int divy)
static void MapPointsWithStride(const SkMatrix &mx, SkPoint pts[], size_t stride, int count)
static bool NearlyAffine(const SkMatrix &m, const SkRect &bounds, SkScalar tolerance=SK_ScalarNearlyZero)
static void MapPointsWithStride(const SkMatrix &mx, SkPoint dst[], size_t dstStride, const SkPoint src[], size_t srcStride, int count)
static bool InverseMapRect(const SkMatrix &mx, SkRect *dst, const SkRect &src)
static SkScalar ComputeResScaleForStroking(const SkMatrix &matrix)
SkScalar getTranslateY() const
void mapPoints(SkPoint dst[], const SkPoint src[], int count) const
bool invert(SkMatrix *inverse) const
SkScalar getScaleX() const
SkScalar getScaleY() const
bool isScaleTranslate() const
bool mapRect(SkRect *dst, const SkRect &src, SkApplyPerspectiveClip pc=SkApplyPerspectiveClip::kYes) const
SkScalar getTranslateX() const
@ kTranslate_Mask
translation SkMatrix
@ kIdentity_Mask
identity SkMatrix; all bits clear
unsigned useCenter Optional< SkMatrix > matrix
Optional< SkRect > bounds
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
static SKVX_ALWAYS_INLINE Vec Load(const void *ptr)