Home
last modified time | relevance | path

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

12

/third_party/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" : "",
/third_party/flutter/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" : "",
/third_party/flutter/skia/tests/
DMatrixTest.cpp309 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
314 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
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()
[all …]
/third_party/skia/tests/
DMatrixTest.cpp318 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
323 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
328 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
333 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
338 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
343 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
348 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
353 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
358 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
363 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
[all …]
/third_party/flutter/skia/src/gpu/effects/
DGrDistanceFieldGeoProc.cpp78 bool isSimilarity = SkToBool(dfTexEffect.getFlags() & kSimilarity_DistanceFieldEffectFlag); in onEmitCode() local
112 } else if (isSimilarity) { in onEmitCode()
397 bool isSimilarity = SkToBool(dfPathEffect.getFlags() & kSimilarity_DistanceFieldEffectFlag); in onEmitCode() local
414 } else if (isSimilarity) { in onEmitCode()
671 bool isSimilarity = SkToBool(dfTexEffect.getFlags() & kSimilarity_DistanceFieldEffectFlag); in onEmitCode() local
688 } else if (isSimilarity) { in onEmitCode()
743 if (isSimilarity) { in onEmitCode()
/third_party/skia/src/gpu/effects/
DGrDistanceFieldGeoProc.cpp105 bool isSimilarity = SkToBool(dfTexEffect.fFlags & kSimilarity_DistanceFieldEffectFlag ); in onEmitCode() local
136 } else if (isSimilarity) { in onEmitCode()
406 bool isSimilarity = SkToBool(dfPathEffect.fFlags & kSimilarity_DistanceFieldEffectFlag ); in onEmitCode() local
421 } else if (isSimilarity) { in onEmitCode()
662 bool isSimilarity = SkToBool(dfTexEffect.fFlags & kSimilarity_DistanceFieldEffectFlag ); in onEmitCode() local
677 } else if (isSimilarity) { in onEmitCode()
733 if (isSimilarity) { in onEmitCode()
/third_party/flutter/skia/src/gpu/ccpr/
DGrCoverageCountingPathRenderer.cpp135 if (!args.fViewMatrix->isSimilarity()) { in onCanDrawPath()
363 SkASSERT(m.isSimilarity()); // Otherwise matrixScaleFactor = m.getMaxScale(). in GetStrokeDevWidth()
/third_party/skia/src/gpu/ops/
DSmallPathRenderer.cpp173 flags |= ctm.isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; in onPrepareDraws()
621 thisCtm.isSimilarity() != thatCtm.isSimilarity()) { in onCombineIfPossible()
DAALinearizingConvexPathRenderer.cpp366 if (!args.fViewMatrix->isSimilarity()) { in onCanDrawPath()
DShadowRRectOp.cpp713 SkASSERT(viewMatrix.isSimilarity() && SkRRectPriv::EqualRadii(rrect)); in Make()
DGrOvalOpFactory.cpp37 static inline bool circle_stays_circle(const SkMatrix& m) { return m.isSimilarity(); } in circle_stays_circle()
1100 SkASSERT(viewMatrix.isSimilarity()); in CircleOp()
3170 SkASSERT(viewMatrix.isSimilarity()); in MakeCircularRRectOp()
/third_party/flutter/skia/src/gpu/ops/
DGrSmallPathRenderer.cpp340 flags |= ctm.isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; in onPrepareDraws()
842 thisCtm.isSimilarity() != thatCtm.isSimilarity()) { in onCombineIfPossible()
DGrAALinearizingConvexPathRenderer.cpp63 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.cpp629 SkASSERT(viewMatrix.isSimilarity() && SkRRectPriv::EqualRadii(rrect)); in Make()
DGrOvalOpFactory.cpp34 static inline bool circle_stays_circle(const SkMatrix& m) { return m.isSimilarity(); } in circle_stays_circle()
2914 SkASSERT(viewMatrix.isSimilarity()); in MakeCircularRRectOp()
/third_party/skia/src/gpu/geometry/
DGrAAConvexTessellator.cpp265 SkASSERT(m.isSimilarity()); in tessellate()
302 SkASSERT(m.isSimilarity()); in tessellate()
/third_party/flutter/skia/include/core/
DSkMatrix.h260 bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
/third_party/skia/src/gpu/v1/
DSurfaceDrawContext.cpp1092 viewMatrix.rectStaysRect() && viewMatrix.isSimilarity()) { in drawRRect()
1135 if (tiltZPlane || skipAnalytic || !viewMatrix.rectStaysRect() || !viewMatrix.isSimilarity()) { in drawFastShadow()
1393 viewMatrix.isSimilarity()) { in drawOval()
/third_party/skia/include/core/
DSkMatrix.h325 bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
/third_party/flutter/skia/src/gpu/
DGrRenderTargetContext.cpp1053 viewMatrix.rectStaysRect() && viewMatrix.isSimilarity()) { in drawRRect()
1104 if (tiltZPlane || skipAnalytic || !viewMatrix.rectStaysRect() || !viewMatrix.isSimilarity()) { in drawFastShadow()
1468 oval.width() == oval.height() && viewMatrix.isSimilarity()) { in drawOval()
/third_party/skia/src/core/
DSkBlurMF.cpp1484 bool canBeCircle = (SkRRectPriv::IsCircle(srcRRect) && viewMatrix.isSimilarity()) || in directFilterMaskGPU()

12