Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkRect.cpp108 SkScalar R = SkMinScalar(ar, br); \
110 SkScalar B = SkMinScalar(ab, bb); \
139 fLeft = SkMinScalar(fLeft, left); in join()
140 fTop = SkMinScalar(fTop, top); in join()
DSkRRect.cpp29 SkScalar scale = SkMinScalar(rect.width() / (xRad + xRad), rect.height() / (yRad + yRad)); in setRectXY()
71 scale = SkMinScalar(scale, rect.height() / (topRad + bottomRad)); in setNinePatch()
DSkTextBlob.cpp397 minX = SkMinScalar(x, minX); in ConservativeRunBounds()
DSkPath.cpp25 dst->fLeft = SkMinScalar(dst->fLeft, src.fLeft); in joinNoEmptyChecks()
26 dst->fTop = SkMinScalar(dst->fTop, src.fTop); in joinNoEmptyChecks()
2599 min = SkMinScalar(min, pts[i].fX); in find_minmax()
DSkRecordDraw.cpp487 left = SkMinScalar(left, op.xpos[i]); in bounds()
DSkMatrix.cpp1471 results[0] = SkMinScalar(SkScalarAbs(m[SkMatrix::kMScaleX]), in get_scale_factor()
1503 results[0] = SkMinScalar(a, c); in get_scale_factor()
/external/skia/src/gpu/
DGrAARectRenderer.cpp219 SkScalar inset = SkMinScalar(devRect.width(), SK_Scalar1); in generateAAFillRectGeometry()
220 inset = SK_ScalarHalf * SkMinScalar(inset, devRect.height()); in generateAAFillRectGeometry()
685 SkScalar inset = SkMinScalar(SK_Scalar1, devOutside.fRight - devInside.fRight); in generateAAStrokeRectGeometry()
686 inset = SkMinScalar(inset, devInside.fLeft - devOutside.fLeft); in generateAAStrokeRectGeometry()
687 inset = SkMinScalar(inset, devInside.fTop - devOutside.fTop); in generateAAStrokeRectGeometry()
689 inset = SK_ScalarHalf * SkMinScalar(inset, devOutside.fBottom - devInside.fBottom); in generateAAStrokeRectGeometry()
691 inset = SK_ScalarHalf * SkMinScalar(inset, devOutsideAssist.fBottom - in generateAAStrokeRectGeometry()
845 SkScalar minDim = SkMinScalar(outside.width(), outside.height()); in BATCH_TEST_DEFINE()
DGrAAConvexTessellator.cpp687 minDot = SkMinScalar(minDot, dot); in isConvex()
/external/skia/include/core/
DSkRect.h574 fLeft = SkMinScalar(p0.fX, p1.fX); in set()
576 fTop = SkMinScalar(p0.fY, p1.fY); in set()
701 SkScalar R = SkMinScalar(ar, br); in Intersects()
703 SkScalar B = SkMinScalar(ab, bb); in Intersects()
759 fLeft = SkMinScalar(fLeft, r.left()); in joinPossiblyEmptyRect()
760 fTop = SkMinScalar(fTop, r.top()); in joinPossiblyEmptyRect()
775 fLeft = SkMinScalar(x, fLeft); in growToInclude()
777 fTop = SkMinScalar(y, fTop); in growToInclude()
DSkScalar.h200 static inline SkScalar SkMinScalar(SkScalar a, SkScalar b) { return a < b ? a : b; } in SkMinScalar() function
/external/skia/src/effects/
DSkMagnifierImageFilter.cpp364 weight = SkMinScalar(SkScalarSquare(dist), SK_Scalar1); in onFilterImage()
366 SkScalar sqDist = SkMinScalar(SkScalarSquare(x_dist), in onFilterImage()
368 weight = SkMinScalar(sqDist, SK_Scalar1); in onFilterImage()
DSkBlurImageFilter.cpp29 sigma.fX = SkMinScalar(SkScalarAbs(sigma.fX), MAX_SIGMA); in mapSigma()
30 sigma.fY = SkMinScalar(SkScalarAbs(sigma.fY), MAX_SIGMA); in mapSigma()
DSkDashPathEffect.cpp226 SkScalar clampedInitialDashLength = SkMinScalar(length, fInitialDashLength); in asPoints()
DSkBlurMaskFilter.cpp114 return SkMinScalar(xformedSigma, kMAX_BLUR_SIGMA); in computeXformedSigma()
/external/skia/samplecode/
DSampleStringArt.cpp40 while (length < (SkScalarHalf(SkMinScalar(this->width(), this->height())) - 10.f)) in onDrawContent()
/external/skia/src/animator/
DSkDrawColor.cpp28 SkScalar min = SkMinScalar(SkMinScalar(red, green), blue); in RGB_to_HSV()
DSkDisplayMath.cpp182 scalarResult = SkMinScalar(scalarResult, array->fOperand.fScalar); in executeFunction()
/external/skia/src/views/
DSkParsePaint.cpp98 x = SkMaxScalar(0, SkMinScalar(x, SK_Scalar1)); in SkPaint_Inflate()
/external/skia/gm/
Dimagefilterstransformed.cpp40 SkScalar radius = SkMinScalar(x, y) * 0.8f; in makeGradientCircle()
Dimagefiltersclipped.cpp46 SkScalar radius = SkMinScalar(x, y) * 0.8f; in make_gradient_circle()
Dimagefiltersscaled.cpp46 SkScalar radius = SkScalarMul(SkMinScalar(x, y), SkIntToScalar(4) / SkIntToScalar(5)); in make_gradient_circle()
Dimagefilterscropexpand.cpp63 SkScalar radius = SkMinScalar(x, y) * 0.8f; in make_gradient_circle()
/external/skia/src/pdf/
DSkPDFUtils.cpp107 SkScalar bottom = SkMinScalar(rect.fBottom, rect.fTop); in AppendRectangle()
/external/skia/bench/
DPathBench.cpp653 SkScalar rx = SkMinScalar(rect.width(), xIn); in add_corner_arc()
654 SkScalar ry = SkMinScalar(rect.height(), yIn); in add_corner_arc()
/external/skia/src/gpu/effects/
DGrDashingEffect.cpp385 startPts[1].fX = SkMinScalar(startPts[0].fX + args.fIntervals[0] - args.fPhase, in generateGeometry()

12