Home
last modified time | relevance | path

Searched refs:fM (Results 1 - 6 of 6) sorted by relevance

/third_party/skia/experimental/graphite/src/geom/
H A DTransform.cpp27 : fM(m) { in Transform()
28 if (fM.invert(&fInvM)) { in Transform()
30 fType = (fM == SkM44()) ? Type::kIdentity : Type::kPerspective; in Transform()
40 // Checking fM should be sufficient as all other values are computed from it. in operator ==()
41 SkASSERT(fM != t.fM || (fInvM == t.fInvM && fType == t.fType && fScale == t.fScale)); in operator ==()
42 return fM == t.fM; in operator ==()
45 Rect Transform::mapRect(const Rect& rect) const { return map_rect(fM, rect); } in mapRect()
H A DTransform_graphite.h48 operator const SkM44&() const { return fM; } in operator const SkM44&()
49 operator SkMatrix() const { return fM.asM33(); } in operator SkMatrix()
54 const SkM44& matrix() const { return fM; } in matrix()
67 SkM44 fM; member in skgpu::Transform
/third_party/skia/bench/
H A DMatrix44Bench.cpp165 fM = SkM44::Translate(rand.nextF(), rand.nextF()); in MapRectBench()
169 fM = SkM44::Scale(rand.nextF(), rand.nextF()); in MapRectBench()
170 fM.postTranslate(rand.nextF(), rand.nextF()); in MapRectBench()
174 fM = SkM44::Rotate({0.f, 0.f, 1.f}, SkDegreesToRadians(45.f)); in MapRectBench()
179 fM = SkM44::Perspective(0.01f, 10.f, SK_ScalarPI / 3.f); in MapRectBench()
180 fM.preTranslate(0.f, 5.f, -0.1f); in MapRectBench()
181 fM.preConcat(SkM44::Rotate({0.f, 1.f, 0.f}, 0.008f /* radians */)); in MapRectBench()
186 fM = SkM44(); in MapRectBench()
187 fM.setRow(3, {-.2f, -.6f, 0.f, 8.f}); in MapRectBench()
201 SkM44 fM; member in MapRectBench
[all...]
H A DMatrixBench.cpp275 SkMatrix fM; member in MapPointsMatrixBench
282 : MatrixBench(name), fM(m) in MapPointsMatrixBench()
292 fM.mapPoints(fDst, fSrc, N);
304 SkMatrix fM; member in MapRectMatrixBench
313 fM.setScale(2, 3); in MapRectMatrixBench()
314 fM.postTranslate(1, 2); in MapRectMatrixBench()
323 fM.mapRectScaleTranslate(&dst, fR);
327 fM.mapRect(&dst, fR);
/third_party/skia/src/gpu/geometry/
H A DGrPathUtils.cpp177 fM[0] = 0; in set()
178 fM[1] = 0; in set()
179 fM[2] = 0; in set()
181 fM[3] = lineVec.fX; in set()
182 fM[4] = lineVec.fY; in set()
183 fM[5] = -lineVec.dot(qPts[maxEdge]); in set()
187 fM[0] = 0; fM[1] = 0; fM[2] = 100.f; in set()
188 fM[ in set()
[all...]
H A DGrPathUtils.h88 float sx = fM[0]; in apply()
89 float kx = fM[1]; in apply()
90 float tx = fM[2]; in apply()
91 float ky = fM[3]; in apply()
92 float sy = fM[4]; in apply()
93 float ty = fM[5]; in apply()
104 float fM[6]; member in GrPathUtils::QuadUVMatrix

Completed in 3 milliseconds