Home
last modified time | relevance | path

Searched refs:isSimilarity (Results 1 – 25 of 29) sorted by relevance

12

/external/skia/docs/examples/
DMatrix_isSimilarity.cpp15 bool isSimilarity = m.isSimilarity();
17 str.printf("sx: %g sy: %g sim: %s", sx, sy, isSimilarity ? "true" : "false");
23 if (!isSimilarity) {
DMatrix_preservesRightAngles.cpp15 bool isSimilarity = m.isSimilarity();
18 str.printf("sx: %g kx: %g %s %s", sx, kx, isSimilarity ? "sim" : "",
/external/skia/tests/
DMatrixTest.cpp319 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/
DMatrixTest.cpp312 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/
DGrDistanceFieldGeoProc.cpp79 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/
DGrDistanceFieldGeoProc.cpp77 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/
DGrCoverageCountingPathRenderer.cpp105 if (!args.fViewMatrix->isSimilarity()) { in onCanDrawPath()
324 SkASSERT(m.isSimilarity()); // Otherwise matrixScaleFactor = m.getMaxScale(). in GetStrokeDevWidth()
/external/skia/src/gpu/ops/
DGrSmallPathRenderer.cpp218 flags |= ctm.isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; in onPrepareDraws()
659 thisCtm.isSimilarity() != thatCtm.isSimilarity()) { in onCombineIfPossible()
DGrAALinearizingConvexPathRenderer.cpp63 if (!args.fViewMatrix->isSimilarity()) { in onCanDrawPath()
DGrAAConvexTessellator.cpp264 SkASSERT(m.isSimilarity()); in tessellate()
301 SkASSERT(m.isSimilarity()); in tessellate()
DGrShadowRRectOp.cpp712 SkASSERT(viewMatrix.isSimilarity() && SkRRectPriv::EqualRadii(rrect)); in Make()
DGrOvalOpFactory.cpp35 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/
DGrSmallPathRenderer.cpp339 flags |= ctm.isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; in onPrepareDraws()
838 thisCtm.isSimilarity() != thatCtm.isSimilarity()) { in onCombineIfPossible()
DGrAALinearizingConvexPathRenderer.cpp62 if (!args.fViewMatrix->isSimilarity()) { in onCanDrawPath()
DGrAAConvexTessellator.cpp255 SkASSERT(m.isSimilarity()); in tessellate()
292 SkASSERT(m.isSimilarity()); in tessellate()
DGrAtlasTextOp.cpp91 fDFGPFlags = viewMatrix.isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; in init()
DGrShadowRRectOp.cpp630 SkASSERT(viewMatrix.isSimilarity() && SkRRectPriv::EqualRadii(rrect)); in Make()
/external/skqp/docs/
DSkMatrix_Reference.bmh352 #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/
DSkMatrix.h262 bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
/external/skia/src/gpu/
DGrSurfaceDrawContext.cpp1092 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/
DSkMatrix.h327 bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
/external/skia/src/core/
DSkBlurMF.cpp613 bool canBeCircle = (SkRRectPriv::IsCircle(srcRRect) && viewMatrix.isSimilarity()) || in directFilterMaskGPU()
DSkMatrix.cpp194 bool SkMatrix::isSimilarity(SkScalar tol) const { in isSimilarity() function in SkMatrix
/external/skqp/src/gpu/
DGrRenderTargetContext.cpp1166 if (tiltZPlane || skipAnalytic || !viewMatrix.rectStaysRect() || !viewMatrix.isSimilarity()) { in drawFastShadow()
/external/skqp/src/core/
DSkMatrix.cpp202 bool SkMatrix::isSimilarity(SkScalar tol) const { in isSimilarity() function in SkMatrix

12