Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkTime.cpp18 int timeZoneHours = SkTAbs(timeZoneMinutes) / 60; in toISO8601()
19 timeZoneMinutes = SkTAbs(timeZoneMinutes) % 60; in toISO8601()
DSkColorSpacePriv.h58 return SkTAbs(a - b) < 0.01f; in color_space_almost_equal()
64 return SkTAbs(a - b) < 0.001f; in transfer_fn_almost_equal()
DSkColorSpace_ICC.cpp1277 return (SkTAbs(X - kD50_WhitePoint[0]) <= 0.04f) && in is_close_to_d50()
1278 (SkTAbs(Y - kD50_WhitePoint[1]) <= 0.04f) && in is_close_to_d50()
1279 (SkTAbs(Z - kD50_WhitePoint[2]) <= 0.04f); in is_close_to_d50()
DSkGeometry.cpp1149 SkScalar closerY = SkTAbs(midY - startY) < SkTAbs(midY - endY) ? startY : endY; in subdivide()
/external/skia/src/pathops/
DSkPathOpsPoint.h258 float largestNumber = SkTMax(SkTAbs(a.fX), SkTMax(SkTAbs(a.fY), in WayRoughlyEqual()
259 SkTMax(SkTAbs(b.fX), SkTAbs(b.fY)))); in WayRoughlyEqual()
DSkPathOpsCurve.cpp105 maxVal = SkTMax(maxVal, SkTMax(SkTAbs(fCurve[index].fX), in setCurveHullSweep()
106 SkTAbs(fCurve[index].fY))); in setCurveHullSweep()
DSkOpSpan.cpp465 SkASSERT(!DEBUG_LIMIT_WIND_SUM || SkTAbs(oppSum) <= DEBUG_LIMIT_WIND_SUM); in setOppSum()
475 SkASSERT(!DEBUG_LIMIT_WIND_SUM || SkTAbs(windSum) <= DEBUG_LIMIT_WIND_SUM); in setWindSum()
DSkPathOpsTypes.cpp188 return SkTAbs(floatIntA.fSignBitInt - floatIntB.fSignBitInt); in UlpsDistance()
DSkOpSegment.cpp1459 SkASSERT(!DEBUG_LIMIT_WIND_SUM || SkTAbs(*sumWinding) <= DEBUG_LIMIT_WIND_SUM); in setUpWindings()
1478 SkASSERT(!DEBUG_LIMIT_WIND_SUM || SkTAbs(*sumWinding) <= DEBUG_LIMIT_WIND_SUM); in setUpWindings()
1479 SkASSERT(!DEBUG_LIMIT_WIND_SUM || SkTAbs(*oppSumWinding) <= DEBUG_LIMIT_WIND_SUM); in setUpWindings()
1707 int absOut = SkTAbs(outerWinding); in UseInnerWinding()
1708 int absIn = SkTAbs(innerWinding); in UseInnerWinding()
/external/skia/src/effects/shadows/
DSkSpotShadowMaskFilter.cpp269 SkScalar scaleOffset = (scale - 1.0f) * SkTMax(SkTMax(SkTAbs(rrect.rect().fLeft), in directFilterRRectMaskGPU()
270 SkTAbs(rrect.rect().fRight)), in directFilterRRectMaskGPU()
271 SkTMax(SkTAbs(rrect.rect().fTop), in directFilterRRectMaskGPU()
272 SkTAbs(rrect.rect().fBottom))); in directFilterRRectMaskGPU()
/external/skia/tests/
DCrossContextImageTest.cpp30 return SkTAbs((int)SkColorGetR(a) - (int)SkColorGetR(b)) <= error && in colors_are_close()
31 SkTAbs((int)SkColorGetG(a) - (int)SkColorGetG(b)) <= error && in colors_are_close()
32 SkTAbs((int)SkColorGetB(a) - (int)SkColorGetB(b)) <= error; in colors_are_close()
DTime.cpp47 REPORTER_ASSERT(r, SkTAbs(SkToInt(dateTime.fTimeZoneMinutes)) <= 14 * 60); in DEF_TEST()
DBlendTest.cpp37 if (SkTAbs(ideal - p) == 1) { r.diffs_by_1++; } in test()
DPathOpsQuadLineIntersectionThreadedTest.cpp96 if (h == v && SkTAbs(h) != 1) { in testQuadLineIntersectMain()
DPathOpsAngleTest.cpp54 int epsilon = SkTAbs(p1Bits - p2Bits); in DEF_TEST()
109 int epsilon = SkTAbs(p1Bits - p2Bits); in DEF_TEST()
DICCTest.cpp19 return SkTAbs(a - b) < 0.001f; in almost_equal()
DColorSpaceXformTest.cpp71 return SkTAbs(x - y) <= 1; in almost_equal()
/external/skia/samplecode/
DSampleAndroidShadows.cpp361 SkScalar scaleOffset = (scale - 1.0f) * SkTMax(SkTMax(SkTAbs(pathRect.fLeft), in drawSpotShadowAlt()
362 SkTAbs(pathRect.fRight)), in drawSpotShadowAlt()
363 SkTMax(SkTAbs(pathRect.fTop), in drawSpotShadowAlt()
364 SkTAbs(pathRect.fBottom))); in drawSpotShadowAlt()
/external/skia/src/pdf/
DSkPDFMetadata.cpp20 int timeZoneHours = SkTAbs(timeZoneMinutes) / 60; in pdf_date()
21 timeZoneMinutes = SkTAbs(timeZoneMinutes) % 60; in pdf_date()
/external/skia/src/effects/gradients/
DSkClampRange.cpp29 uint64_t udx = static_cast<uint64_t>(SkTAbs(dx)); in sk_64_smul_check()
/external/skia/src/effects/
DSkRRectsGaussianEdgeMaskFilter.cpp61 SkVector delta = { SkTAbs(p.fX - rr.rect().centerX()), SkTAbs(p.fY - rr.rect().centerY()) }; in compute_rrect_normalized_dist()
/external/skia/src/codec/
DSkAndroidCodec.cpp45 return 0.5f * SkTAbs(a.fX*b.fY + b.fX*c.fY - a.fX*c.fY - c.fX*b.fY - b.fX*a.fY); in calculate_area()
DSkIcoCodec.cpp217 float error = SkTAbs(((float) (width * height)) - desiredSize); in onGetScaledDimensions()
/external/skia/include/core/
DSkTypes.h352 template <typename T> static inline T SkTAbs(T value) { in SkTAbs() function
/external/skia/tools/
Dcolorspaceinfo.cpp211 return 0.5f * SkTAbs(a.fX*b.fY + b.fX*c.fY - a.fX*c.fY - c.fX*b.fY - b.fX*a.fY); in calculate_area()

12