Home
last modified time | relevance | path

Searched refs:SkMaxScalar (Results 1 – 25 of 35) sorted by relevance

12

/external/skia/src/core/
DSkRect.cpp108 SkScalar L = SkMaxScalar(al, bl); \
110 SkScalar T = SkMaxScalar(at, bt); \
142 fRight = SkMaxScalar(fRight, right); in join()
143 fBottom = SkMaxScalar(fBottom, bottom); in join()
DSkRRect.cpp68 leftRad = SkMaxScalar(leftRad, 0); in setNinePatch()
69 topRad = SkMaxScalar(topRad, 0); in setNinePatch()
70 rightRad = SkMaxScalar(rightRad, 0); in setNinePatch()
71 bottomRad = SkMaxScalar(bottomRad, 0); in setNinePatch()
DSkPathMeasure.cpp149 SkScalar dist = SkMaxScalar(SkScalarAbs(dx), SkScalarAbs(dy)); in quad_too_curvy()
158 SkScalar dist = SkMaxScalar(SkScalarAbs(dxy.fX), SkScalarAbs(dxy.fY)); in conic_too_curvy()
164 SkScalar dist = SkMaxScalar(SkScalarAbs(x - pt.fX), SkScalarAbs(y - pt.fY)); in cheap_dist_exceeds_limit()
DSkRecordDraw.cpp445 SkScalar stroke = SkMaxScalar(op.paint.getStrokeWidth(), 0.01f); in bounds()
501 right = SkMaxScalar(right, op.xpos[i]); in bounds()
DSkPictureShader.cpp198 … SkScalar downScale = maxTextureSize / SkMaxScalar(scaledSize.width(), scaledSize.height()); in refBitmapShader()
DSkShadowShader.cpp787 int variance = SkMaxScalar(shDepthsq - shDepth * shDepth, in shadeSpan()
795 lightProb = SkMaxScalar((lightProb - bias) / (1.0f - bias), 0.0f); in shadeSpan()
/external/skia/include/core/
DSkRect.h575 fRight = SkMaxScalar(p0.fX, p1.fX); in set()
577 fBottom = SkMaxScalar(p0.fY, p1.fY); in set()
699 SkScalar L = SkMaxScalar(al, bl); in Intersects()
701 SkScalar T = SkMaxScalar(at, bt); in Intersects()
760 fRight = SkMaxScalar(fRight, r.right()); in joinPossiblyEmptyRect()
761 fBottom = SkMaxScalar(fBottom, r.bottom()); in joinPossiblyEmptyRect()
775 fRight = SkMaxScalar(x, fRight); in growToInclude()
777 fBottom = SkMaxScalar(y, fBottom); in growToInclude()
DSkScalar.h145 static inline SkScalar SkMaxScalar(SkScalar a, SkScalar b) { return a > b ? a : b; } in SkMaxScalar() function
/external/skia/src/effects/
DSkDropShadowImageFilter.cpp92 sigma.fX = SkMaxScalar(0, sigma.fX); in onFilterImage()
93 sigma.fY = SkMaxScalar(0, sigma.fY); in onFilterImage()
DSkAlphaThresholdFilter.cpp58 return SkMinScalar(SkMaxScalar(x, 0), 1); in SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY()
DSkMagnifierImageFilter.cpp425 dist = SkMaxScalar(kScalar2 - dist, 0); in onFilterImage()
/external/skia/tests/
DPaintBreakTextTest.cpp21 const SkScalar step = SkMaxScalar(width / 10, SK_Scalar1); in test_monotonic()
DPaintTest.cpp193 SkScalar miter = SkMaxScalar(SK_Scalar1, paint.getStrokeMiter()); in DEF_TEST()
/external/skia/gm/
Ddrawminibitmaprect.cpp30 const SkScalar radius = 4 * SkMaxScalar(wScalar, hScalar); in makebm()
Dhairlines.cpp204 maxH = SkMaxScalar(maxH, bounds.height()); in onDraw()
Dshadertext2.cpp121 maxLabelW = SkMaxScalar(maxLabelW, labelW);
Ddrawbitmaprect.cpp54 SkScalar radius = 4 * SkMaxScalar(wScalar, hScalar); in makebm()
Dconvexpolyclip.cpp26 SkScalar radius = 3 * SkMaxScalar(wScalar, hScalar); in make_bmp()
/external/skia/tools/viewer/sk_app/
DCommandSet.cpp124 keyWidth = SkMaxScalar(keyWidth, in drawHelp()
/external/skia/src/utils/
DSkPatchUtils.cpp138 int lodX = static_cast<int>(SkMaxScalar(topLength, bottomLength) / kPartitionSize); in GetLevelOfDetail()
139 int lodY = static_cast<int>(SkMaxScalar(leftLength, rightLength) / kPartitionSize); in GetLevelOfDetail()
/external/skia/src/views/
DSkView.cpp63 width = SkMaxScalar(0, width); in setSize()
64 height = SkMaxScalar(0, height); in setSize()
/external/skia/samplecode/
DSampleAndroidShadows.cpp158 SkScalar umbraAlpha = 1 / (1 + SkMaxScalar(zValue*kHeightFactor, 0)); in drawAmbientShadow()
196 SkScalar umbraAlpha = 1 / (1 + SkMaxScalar(zValue*kHeightFactor, 0)); in drawAmbientShadowAlt()
/external/skia/src/gpu/ops/
DGrSmallPathRenderer.cpp124 SkScalar maxDim = SkMaxScalar(bounds.width(), bounds.height()); in onCanDrawPath()
290 SkScalar maxDim = SkMaxScalar(bounds.width(), bounds.height()); in onPrepareDraws()
/external/skia/src/gpu/
DGrPathUtils.cpp30 stretch = SkMaxScalar(stretch, mat.mapRadius(SK_Scalar1)); in scaleToleranceToSrc()
344 scale = SkMaxScalar(scale, SkScalarAbs(klm[i])); in getConicKLM()
/external/skia/src/gpu/text/
DGrAtlasTextBlob.h142 fMaxMinScale = SkMaxScalar(scaledMax, fMaxMinScale); in setMinAndMaxScale()

12