/third_party/skia/src/core/ |
D | SkTime.cpp | 21 int timeZoneHours = SkTAbs(timeZoneMinutes) / 60; in toISO8601() 22 timeZoneMinutes = SkTAbs(timeZoneMinutes) % 60; in toISO8601()
|
D | SkColorSpacePriv.h | 26 return SkTAbs(a - b) < 0.01f; in color_space_almost_equal() 32 return SkTAbs(a - b) < 0.001f; in transfer_fn_almost_equal()
|
D | SkMathPriv.h | 317 return SkTAbs(x) <= 32767.0f; in SkFitsInFixed()
|
D | SkGeometry.cpp | 1455 SkScalar closerY = SkTAbs(midY - startY) < SkTAbs(midY - endY) ? startY : endY; in subdivide()
|
/third_party/skia/src/pathops/ |
D | SkPathOpsPoint.h | 266 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()
|
D | SkPathOpsCurve.cpp | 105 maxVal = std::max(maxVal, std::max(SkTAbs(fCurve[index].fX), in setCurveHullSweep() 106 SkTAbs(fCurve[index].fY))); in setCurveHullSweep()
|
D | SkOpSpan.cpp | 472 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()
|
D | SkPathOpsTypes.cpp | 191 return SkTAbs(floatIntA.fSignBitInt - floatIntB.fSignBitInt); in UlpsDistance()
|
D | SkOpSegment.cpp | 1520 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/ |
D | ImGuiLayer.h | 29 SkScalar w = SkTAbs(br.fX - tl.fX), 30 h = SkTAbs(br.fY - tl.fY);
|
/third_party/skia/tests/ |
D | EncodeTest.cpp | 106 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()
|
D | TypefaceTest.cpp | 199 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()
|
D | Time.cpp | 47 REPORTER_ASSERT(r, SkTAbs(SkToInt(dateTime.fTimeZoneMinutes)) <= 14 * 60); in DEF_TEST()
|
D | BlendTest.cpp | 50 if (SkTAbs(ideal - p) == 1) { r.diffs_by_1++; } in test()
|
D | PathOpsQuadLineIntersectionThreadedTest.cpp | 100 if (h == v && SkTAbs(h) != 1) { in testQuadLineIntersectMain()
|
D | PathOpsAngleTest.cpp | 53 int epsilon = SkTAbs(p1Bits - p2Bits); in DEF_TEST() 108 int epsilon = SkTAbs(p1Bits - p2Bits); in DEF_TEST()
|
D | ImageTest.cpp | 571 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()
|
D | ColorSpaceTest.cpp | 27 return SkTAbs(a - b) < 0.001f; in almost_equal()
|
/third_party/skia/src/pdf/ |
D | SkPDFMetadata.cpp | 34 int timeZoneHours = SkTAbs(timeZoneMinutes) / 60; in pdf_date() 35 timeZoneMinutes = SkTAbs(timeZoneMinutes) % 60; in pdf_date()
|
/third_party/skia/src/gpu/ |
D | GrDataUtils.cpp | 67 return SkTAbs(rOrig - r8) + SkTAbs(gOrig - g8) + SkTAbs(bOrig - b8); in test_table_entry()
|
/third_party/skia/src/codec/ |
D | SkAndroidCodec.cpp | 41 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()
|
D | SkIcoCodec.cpp | 263 float error = SkTAbs(((float) (width * height)) - desiredSize); in onGetScaledDimensions()
|
/third_party/skia/src/utils/ |
D | SkShadowUtils.cpp | 799 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/ |
D | SkTypes.h | 614 template <typename T> static inline T SkTAbs(T value) { in SkTAbs() function
|
/third_party/skia/src/gpu/v1/ |
D | SurfaceDrawContext.cpp | 1275 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()
|