Home
last modified time | relevance | path

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

12

/third_party/skia/src/core/
DSkTime.cpp21 int timeZoneHours = SkTAbs(timeZoneMinutes) / 60; in toISO8601()
22 timeZoneMinutes = SkTAbs(timeZoneMinutes) % 60; in toISO8601()
DSkColorSpacePriv.h26 return SkTAbs(a - b) < 0.01f; in color_space_almost_equal()
32 return SkTAbs(a - b) < 0.001f; in transfer_fn_almost_equal()
DSkMathPriv.h317 return SkTAbs(x) <= 32767.0f; in SkFitsInFixed()
DSkGeometry.cpp1455 SkScalar closerY = SkTAbs(midY - startY) < SkTAbs(midY - endY) ? startY : endY; in subdivide()
/third_party/skia/src/pathops/
DSkPathOpsPoint.h266 float largestNumber = std::max(SkTAbs(a.fX), std::max(SkTAbs(a.fY), in WayRoughlyEqual()
267 std::max(SkTAbs(b.fX), SkTAbs(b.fY)))); in WayRoughlyEqual()
DSkPathOpsCurve.cpp105 maxVal = std::max(maxVal, std::max(SkTAbs(fCurve[index].fX), in setCurveHullSweep()
106 SkTAbs(fCurve[index].fY))); in setCurveHullSweep()
DSkOpSpan.cpp472 SkASSERT(!DEBUG_LIMIT_WIND_SUM || SkTAbs(oppSum) <= DEBUG_LIMIT_WIND_SUM); in setOppSum()
482 SkASSERT(!DEBUG_LIMIT_WIND_SUM || SkTAbs(windSum) <= DEBUG_LIMIT_WIND_SUM); in setWindSum()
DSkPathOpsTypes.cpp191 return SkTAbs(floatIntA.fSignBitInt - floatIntB.fSignBitInt); in UlpsDistance()
DSkOpSegment.cpp1520 SkASSERT(!DEBUG_LIMIT_WIND_SUM || SkTAbs(*sumWinding) <= DEBUG_LIMIT_WIND_SUM); in setUpWindings()
1539 SkASSERT(!DEBUG_LIMIT_WIND_SUM || SkTAbs(*sumWinding) <= DEBUG_LIMIT_WIND_SUM); in setUpWindings()
1540 SkASSERT(!DEBUG_LIMIT_WIND_SUM || SkTAbs(*oppSumWinding) <= DEBUG_LIMIT_WIND_SUM); in setUpWindings()
1772 int absOut = SkTAbs(outerWinding); in UseInnerWinding()
1773 int absIn = SkTAbs(innerWinding); in UseInnerWinding()
/third_party/skia/tools/viewer/
DImGuiLayer.h29 SkScalar w = SkTAbs(br.fX - tl.fX),
30 h = SkTAbs(br.fY - tl.fY);
/third_party/skia/tests/
DEncodeTest.cpp106 if (SkTAbs((int)SkGetPackedR32(a) - (int)SkGetPackedR32(b)) > tolerance) { in almost_equals()
110 if (SkTAbs((int)SkGetPackedG32(a) - (int)SkGetPackedG32(b)) > tolerance) { in almost_equals()
114 if (SkTAbs((int)SkGetPackedB32(a) - (int)SkGetPackedB32(b)) > tolerance) { in almost_equals()
118 if (SkTAbs((int)SkGetPackedA32(a) - (int)SkGetPackedA32(b)) > tolerance) { in almost_equals()
DTypefaceTest.cpp199 if (!(SkTAbs(fixedRead - fixedOriginal) < 2)) { in DEF_TEST()
379 if (!(SkTAbs(fixedActualMin - fixedExpectedMin) < 2)) { in DEF_TEST()
385 if (!(SkTAbs(fixedActualMax - fixedExpectedMax) < 2)) { in DEF_TEST()
391 if (!(SkTAbs(fixedActualDefault - fixedExpectedDefault) < 2)) { in DEF_TEST()
DTime.cpp47 REPORTER_ASSERT(r, SkTAbs(SkToInt(dateTime.fTimeZoneMinutes)) <= 14 * 60); in DEF_TEST()
DBlendTest.cpp50 if (SkTAbs(ideal - p) == 1) { r.diffs_by_1++; } in test()
DPathOpsQuadLineIntersectionThreadedTest.cpp100 if (h == v && SkTAbs(h) != 1) { in testQuadLineIntersectMain()
DPathOpsAngleTest.cpp53 int epsilon = SkTAbs(p1Bits - p2Bits); in DEF_TEST()
108 int epsilon = SkTAbs(p1Bits - p2Bits); in DEF_TEST()
DImageTest.cpp571 if (origA != readA || SkTAbs(readB - origB) > tol || SkTAbs(readG - origG) > tol || in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
572 SkTAbs(readR - origR) > tol) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
1228 auto almost_equal = [](int a, int b) { return SkTAbs(a - b) <= 2; }; in DEF_TEST()
DColorSpaceTest.cpp27 return SkTAbs(a - b) < 0.001f; in almost_equal()
/third_party/skia/src/pdf/
DSkPDFMetadata.cpp34 int timeZoneHours = SkTAbs(timeZoneMinutes) / 60; in pdf_date()
35 timeZoneMinutes = SkTAbs(timeZoneMinutes) % 60; in pdf_date()
/third_party/skia/src/gpu/
DGrDataUtils.cpp67 return SkTAbs(rOrig - r8) + SkTAbs(gOrig - g8) + SkTAbs(bOrig - b8); in test_table_entry()
/third_party/skia/src/codec/
DSkAndroidCodec.cpp41 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.cpp263 float error = SkTAbs(((float) (width * height)) - desiredSize); in onGetScaledDimensions()
/third_party/skia/src/utils/
DSkShadowUtils.cpp799 SkTAbs(factory.fOffset.fX) > 0.5f*devBounds.width() || in drawShadow()
800 SkTAbs(factory.fOffset.fY) > 0.5f*devBounds.height()) { in drawShadow()
/third_party/skia/include/core/
DSkTypes.h614 template <typename T> static inline T SkTAbs(T value) { in SkTAbs() function
/third_party/skia/src/gpu/v1/
DSurfaceDrawContext.cpp1275 maxOffset = std::max(std::max(SkTAbs(spotShadowRRect.rect().fLeft - in drawFastShadow()
1277 SkTAbs(spotShadowRRect.rect().fTop - in drawFastShadow()
1279 std::max(SkTAbs(spotShadowRRect.rect().fRight - in drawFastShadow()
1281 SkTAbs(spotShadowRRect.rect().fBottom - in drawFastShadow()

12