/external/skia/docs/examples/ |
D | Matrix_isSimilarity.cpp | 15 bool isSimilarity = m.isSimilarity(); 17 str.printf("sx: %g sy: %g sim: %s", sx, sy, isSimilarity ? "true" : "false"); 23 if (!isSimilarity) {
|
D | Matrix_preservesRightAngles.cpp | 15 bool isSimilarity = m.isSimilarity(); 18 str.printf("sx: %g kx: %g %s %s", sx, kx, isSimilarity ? "sim" : "",
|
/external/skia/tests/ |
D | MatrixTest.cpp | 319 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape() 324 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape() 329 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape() 334 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape() 339 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape() 344 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape() 349 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape() 354 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape() 359 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape() 364 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape() [all …]
|
/external/skqp/tests/ |
D | MatrixTest.cpp | 312 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape() 318 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape() 324 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape() 330 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape() 336 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape() 343 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape() 350 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape() 356 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape() 362 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape() 369 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape() [all …]
|
/external/skqp/src/gpu/effects/ |
D | GrDistanceFieldGeoProc.cpp | 79 bool isSimilarity = SkToBool(dfTexEffect.getFlags() & kSimilarity_DistanceFieldEffectFlag); in onEmitCode() local 113 } else if (isSimilarity) { in onEmitCode() 397 bool isSimilarity = SkToBool(dfPathEffect.getFlags() & kSimilarity_DistanceFieldEffectFlag); in onEmitCode() local 414 } else if (isSimilarity) { in onEmitCode() 670 bool isSimilarity = SkToBool(dfTexEffect.getFlags() & kSimilarity_DistanceFieldEffectFlag); in onEmitCode() local 686 } else if (isSimilarity) { in onEmitCode() 741 if (isSimilarity) { in onEmitCode()
|
/external/skia/src/gpu/effects/ |
D | GrDistanceFieldGeoProc.cpp | 77 bool isSimilarity = SkToBool(dfTexEffect.getFlags() & kSimilarity_DistanceFieldEffectFlag); in onEmitCode() local 110 } else if (isSimilarity) { in onEmitCode() 388 bool isSimilarity = SkToBool(dfPathEffect.getFlags() & kSimilarity_DistanceFieldEffectFlag); in onEmitCode() local 404 } else if (isSimilarity) { in onEmitCode() 650 bool isSimilarity = SkToBool(dfTexEffect.getFlags() & kSimilarity_DistanceFieldEffectFlag); in onEmitCode() local 666 } else if (isSimilarity) { in onEmitCode() 722 if (isSimilarity) { in onEmitCode()
|
/external/skqp/src/gpu/ccpr/ |
D | GrCoverageCountingPathRenderer.cpp | 105 if (!args.fViewMatrix->isSimilarity()) { in onCanDrawPath() 324 SkASSERT(m.isSimilarity()); // Otherwise matrixScaleFactor = m.getMaxScale(). in GetStrokeDevWidth()
|
/external/skia/src/gpu/ops/ |
D | GrSmallPathRenderer.cpp | 218 flags |= ctm.isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; in onPrepareDraws() 659 thisCtm.isSimilarity() != thatCtm.isSimilarity()) { in onCombineIfPossible()
|
D | GrAALinearizingConvexPathRenderer.cpp | 63 if (!args.fViewMatrix->isSimilarity()) { in onCanDrawPath()
|
D | GrAAConvexTessellator.cpp | 264 SkASSERT(m.isSimilarity()); in tessellate() 301 SkASSERT(m.isSimilarity()); in tessellate()
|
D | GrShadowRRectOp.cpp | 712 SkASSERT(viewMatrix.isSimilarity() && SkRRectPriv::EqualRadii(rrect)); in Make()
|
D | GrOvalOpFactory.cpp | 35 static inline bool circle_stays_circle(const SkMatrix& m) { return m.isSimilarity(); } in circle_stays_circle() 1134 SkASSERT(viewMatrix.isSimilarity()); in CircleOp() 3157 SkASSERT(viewMatrix.isSimilarity()); in MakeCircularRRectOp()
|
/external/skqp/src/gpu/ops/ |
D | GrSmallPathRenderer.cpp | 339 flags |= ctm.isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; in onPrepareDraws() 838 thisCtm.isSimilarity() != thatCtm.isSimilarity()) { in onCombineIfPossible()
|
D | GrAALinearizingConvexPathRenderer.cpp | 62 if (!args.fViewMatrix->isSimilarity()) { in onCanDrawPath()
|
D | GrAAConvexTessellator.cpp | 255 SkASSERT(m.isSimilarity()); in tessellate() 292 SkASSERT(m.isSimilarity()); in tessellate()
|
D | GrAtlasTextOp.cpp | 91 fDFGPFlags = viewMatrix.isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; in init()
|
D | GrShadowRRectOp.cpp | 630 SkASSERT(viewMatrix.isSimilarity() && SkRRectPriv::EqualRadii(rrect)); in Make()
|
/external/skqp/docs/ |
D | SkMatrix_Reference.bmh | 352 #Method bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const 360 with isSimilarity false reveals the pair not visible through the matrix. 369 bool isSimilarity = m.isSimilarity(); 371 str.printf("sx: %g sy: %g sim: %s", sx, sy, isSimilarity ? "true" : "false"); 377 if (!isSimilarity) { 410 bool isSimilarity = m.isSimilarity(); 413 str.printf("sx: %g kx: %g %s %s", sx, kx, isSimilarity ? "sim" : "", 423 #SeeAlso isScaleTranslate isSimilarity rectStaysRect isFixedStepInX
|
/external/skqp/include/core/ |
D | SkMatrix.h | 262 bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
|
/external/skia/src/gpu/ |
D | GrSurfaceDrawContext.cpp | 1092 viewMatrix.rectStaysRect() && viewMatrix.isSimilarity()) { in drawRRect() 1136 if (tiltZPlane || skipAnalytic || !viewMatrix.rectStaysRect() || !viewMatrix.isSimilarity()) { in drawFastShadow() 1400 viewMatrix.isSimilarity()) { in drawOval()
|
/external/skia/include/core/ |
D | SkMatrix.h | 327 bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
|
/external/skia/src/core/ |
D | SkBlurMF.cpp | 613 bool canBeCircle = (SkRRectPriv::IsCircle(srcRRect) && viewMatrix.isSimilarity()) || in directFilterMaskGPU()
|
D | SkMatrix.cpp | 194 bool SkMatrix::isSimilarity(SkScalar tol) const { in isSimilarity() function in SkMatrix
|
/external/skqp/src/gpu/ |
D | GrRenderTargetContext.cpp | 1166 if (tiltZPlane || skipAnalytic || !viewMatrix.rectStaysRect() || !viewMatrix.isSimilarity()) { in drawFastShadow()
|
/external/skqp/src/core/ |
D | SkMatrix.cpp | 202 bool SkMatrix::isSimilarity(SkScalar tol) const { in isSimilarity() function in SkMatrix
|