Home
last modified time | relevance | path

Searched refs:kMScaleX (Results 1 – 25 of 30) sorted by relevance

12

/third_party/skia/src/core/
DSkMatrix.cpp72 fMat[kMScaleX] = buffer[kAScaleX]; in setAffine()
124 int m00 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleX]); in computeTypeMask()
204 SkScalar mx = fMat[kMScaleX]; in isSimilarity()
236 SkScalar mx = fMat[kMScaleX]; in preservesRightAngles()
288 fMat[kMTransX] += sdot(fMat[kMScaleX], dx, fMat[kMSkewX], dy); in preTranslate()
348 fMat[kMScaleX] *= sx; in preScale()
360 if (fMat[kMScaleX] == 1 && fMat[kMScaleY] == 1 in preScale()
397 fMat[kMScaleX] *= invX; in postIDiv()
414 fMat[kMScaleX] = cosV; in setSinCos()
430 fMat[kMScaleX] = xform.fSCos; in setRSXform()
[all …]
DSkPaintPriv.cpp112 SkScalar sx = SkPoint::Length(matrix[SkMatrix::kMScaleX], matrix[SkMatrix::kMSkewY]); in ComputeResScaleForStroking()
DSkPathRef.cpp101 if (matrix.get(SkMatrix::kMScaleX) != 0) { in transform_dir_and_start()
103 if (matrix.get(SkMatrix::kMScaleX) > 0) { in transform_dir_and_start()
DSkStrikeSpec.cpp144 return distance(SkMatrix::kMScaleX, SkMatrix::kMSkewY ) > maxSizeSquared in ShouldDrawAsPath()
DSkScalerContext.cpp834 G.get(SkMatrix::kMScaleX), -G.get(SkMatrix::kMSkewX), G.get(SkMatrix::kMTransX), in computeMatrices()
850 if (SkScalarAbs(GA.get(SkMatrix::kMScaleX)) <= SK_ScalarNearlyZero || in computeMatrices()
869 s->fX = SkScalarAbs(GA.get(SkMatrix::kMScaleX)); in computeMatrices()
DSkBitmapProcState.cpp161 return SkScalarNearlyZero(matrix[SkMatrix::kMScaleX] - SK_Scalar1, tol) in just_trans_general()
/third_party/skia/include/core/
DSkMatrix.h345 static constexpr int kMScaleX = 0; //!< horizontal scale factor variable
407 SkScalar getScaleX() const { return fMat[kMScaleX]; } in getScaleX()
492 SkMatrix& setScaleX(SkScalar v) { return this->set(kMScaleX, v); } in setScaleX()
557 fMat[kMScaleX] = scaleX; in setAll()
1803 fMat[kMScaleX] = sx; in setScaleTranslate()
DSkM44.h407 : SkM44(src[SkMatrix::kMScaleX], src[SkMatrix::kMSkewX], 0, src[SkMatrix::kMTransX], in SkM44()
/third_party/skia/docs/examples/
DMatrix_array_operator.cpp9 SkDebugf("matrix[SkMatrix::kMScaleX] %c= 42\n", matrix[SkMatrix::kMScaleX] == 42 ? '=' : '!'); in draw()
DMemberIndex.cpp14 for (int i : { SkMatrix::kMScaleX, SkMatrix::kMSkewX, SkMatrix::kMTransX,
/third_party/skia/src/gpu/glsl/
DGrGLSLProgramDataManager.cpp16 matrix.get(SkMatrix::kMScaleX), in setSkMatrix()
/third_party/skia/tests/
DMatrixTest.cpp122 buffer[SkMatrix::kMScaleX] = 1; in test_set9()
475 bool result = scalar_nearly_equal_relative(mat[SkMatrix::kMScaleX], in check_matrix_recomposition()
585 SkScalar perpdot = mat[SkMatrix::kMScaleX]*mat[SkMatrix::kMScaleY] - in test_matrix_decomposition()
606 mat[SkMatrix::kMScaleX] = 0.f; in test_matrix_decomposition()
613 mat[SkMatrix::kMScaleX] = 1.f; in test_matrix_decomposition()
916 m.set(SkMatrix::kMScaleX, gRectStaysRectSamples[i].m00); in DEF_TEST()
926 mat.set(SkMatrix::kMScaleX, 1) in DEF_TEST()
/third_party/skia/src/utils/
DSkCamera.cpp101 orien->set(SkMatrix::kMScaleX, x * axis.x - z * cross.x); in doUpdate()
135 matrix->set(SkMatrix::kMScaleX, SkScalarDotDiv(3, patchPtr, 1, mapPtr, 1, dot)); in patchToMatrix()
/third_party/skia/src/gpu/ops/
DSmallPathShapeData.cpp31 SkScalar sx = ctm.get(SkMatrix::kMScaleX); in SmallPathShapeDataKey()
DGrOvalOpFactory.cpp1838 params.fXRadius = SkScalarAbs(viewMatrix[SkMatrix::kMScaleX] * ellipseXRadius + in Make()
1847 strokeWidth * (viewMatrix[SkMatrix::kMScaleX] + viewMatrix[SkMatrix::kMSkewY])); in Make()
2198 SkScalar a = viewMatrix[SkMatrix::kMScaleX]; in DIEllipseOp()
3182 SkScalar scaledRadius = SkScalarAbs(radius * (viewMatrix[SkMatrix::kMScaleX] + in MakeCircularRRectOp()
3198 scaledStroke = SkScalarAbs(strokeWidth * (viewMatrix[SkMatrix::kMScaleX] + in MakeCircularRRectOp()
3232 SkScalar xRadius = SkScalarAbs(viewMatrix[SkMatrix::kMScaleX] * radii.fX + in make_rrect_op()
3252 strokeWidth * (viewMatrix[SkMatrix::kMScaleX] + viewMatrix[SkMatrix::kMSkewY])); in make_rrect_op()
3363 SkScalar a = viewMatrix[SkMatrix::kMScaleX]; in MakeOvalOp()
DSoftwarePathRenderer.cpp284 SkScalar sx = args.fViewMatrix->get(SkMatrix::kMScaleX); in onDrawPath()
DShadowRRectOp.cpp727 SkScalar matrixFactor = viewMatrix[SkMatrix::kMScaleX] + viewMatrix[SkMatrix::kMSkewX]; in Make()
DAAConvexPathRenderer.cpp238 SkScalar det2x2 = m.get(SkMatrix::kMScaleX) * m.get(SkMatrix::kMScaleY) - in get_direction()
/third_party/skia/gm/
Drasterhandleallocator.cpp115 return CGAffineTransformMake(matrix[SkMatrix::kMScaleX], in matrix_to_transform()
248 xf.eM11 = ctm[SkMatrix::kMScaleX]; in updateHandle()
/third_party/skia/src/gpu/geometry/
DGrPathUtils.cpp207 m[SkMatrix::kMScaleX] = (float)((0.5*a3 + a6)*scale); in set()
224 fM[0] = m33 * m.get(SkMatrix::kMScaleX); in set()
231 fM[0] = m.get(SkMatrix::kMScaleX); in set()
/third_party/skia/samplecode/
DSamplePolyToPoly.cpp34 m2.set(SkMatrix::kMScaleX, dst[1].fX - dst[0].fX); in PolyToPolyView()
/third_party/skia/experimental/graphite/src/
DUniformManager.cpp204 m[i].get(SkMatrix::kMScaleX), in WriteSkMatrices()
/third_party/skia/src/gpu/
DGrBlurUtils.cpp334 SkScalar sx = viewMatrix.get(SkMatrix::kMScaleX); in compute_key_and_clip_bounds()
/third_party/skia/src/gpu/v1/
DSurfaceDrawContext.cpp1175 SkScalarInvert(SkScalarAbs(viewMatrix[SkMatrix::kMScaleX])) : in drawFastShadow()
1176 sk_float_rsqrt(viewMatrix[SkMatrix::kMScaleX] * viewMatrix[SkMatrix::kMScaleX] + in drawFastShadow()
/third_party/skia/src/ports/
DSkScalerContext_mac_ct.cpp109 return CGAffineTransformMake( SkScalarToCGFloat(matrix[SkMatrix::kMScaleX]), in MatrixToCGAffineTransform()

12