Home
last modified time | relevance | path

Searched refs:SkScalarAbs (Results 1 – 25 of 50) sorted by relevance

12

/third_party/skia/src/gpu/
DGrClip.h192 return SkScalarAbs(SkScalarRoundToScalar(rect.fLeft) - rect.fLeft) <= kBoundsTolerance && in IsPixelAligned()
193 SkScalarAbs(SkScalarRoundToScalar(rect.fTop) - rect.fTop) <= kBoundsTolerance && in IsPixelAligned()
194 SkScalarAbs(SkScalarRoundToScalar(rect.fRight) - rect.fRight) <= kBoundsTolerance && in IsPixelAligned()
195 SkScalarAbs(SkScalarRoundToScalar(rect.fBottom) - rect.fBottom) <= kBoundsTolerance; in IsPixelAligned()
/third_party/skia/src/effects/imagefilters/
DSkDropShadowImageFilter.cpp135 sigma.fX = SkScalarAbs(sigma.fX); in onFilterImage()
136 sigma.fY = SkScalarAbs(sigma.fY); in onFilterImage()
183 SkScalarCeilToInt(SkScalarAbs(sigma.x() * 3)), in onFilterNodeBounds()
184 SkScalarCeilToInt(SkScalarAbs(sigma.y() * 3))); in onFilterNodeBounds()
DSkDisplacementMapImageFilter.cpp374 bounds.outset(SkScalarAbs(fScale) * SK_ScalarHalf, SkScalarAbs(fScale) * SK_ScalarHalf); in computeFastBounds()
382 return src.makeOutset(SkScalarCeilToInt(SkScalarAbs(scale.fX) * SK_ScalarHalf), in onFilterNodeBounds()
383 SkScalarCeilToInt(SkScalarAbs(scale.fY) * SK_ScalarHalf)); in onFilterNodeBounds()
/third_party/skia/src/utils/
DSkMatrix22.cpp25 } else if (SkScalarAbs(b) > SkScalarAbs(a)) { in SkComputeGivensRotation()
/third_party/skia/include/core/
DSkScalar.h38 #define SkScalarAbs(x) sk_float_abs(x) macro
139 return SkScalarAbs(x) <= tolerance;
145 return SkScalarAbs(x-y) <= tolerance;
DSkPoint.h243 fX = SkScalarAbs(pt.fX); in setAbs()
244 fY = SkScalarAbs(pt.fY); in setAbs()
/third_party/skia/src/shaders/gradients/
DSkTwoPointConicalGradient.cpp38 fR1 = r1 / SkScalarAbs(1 - fFocalX); // focalMatrix has a scale of 1/(1-f) in set()
45 matrix->postScale(fR1 / (fR1 * fR1 - 1), 1 / sqrt(SkScalarAbs(fR1 * fR1 - 1))); in set()
47 matrix->postScale(SkScalarAbs(1 - fFocalX), SkScalarAbs(1 - fFocalX)); // scale |1 - f| in set()
/third_party/skia/src/core/
DSkPathRef.cpp517 dxdy.set(SkScalarAbs(v1_0.fX), SkScalarAbs(v2_1.fY)); in getRRect()
520 dxdy.set(SkScalarAbs(v2_1.fX), SkScalarAbs(v2_1.fY)); in getRRect()
523 dxdy.set(SkScalarAbs(v2_1.fX), SkScalarAbs(v1_0.fY)); in getRRect()
DSkContourMeasure.cpp145 SkScalar dist = std::max(SkScalarAbs(dx), SkScalarAbs(dy)); in quad_too_curvy()
154 SkScalar dist = std::max(SkScalarAbs(dxy.fX), SkScalarAbs(dxy.fY)); in conic_too_curvy()
160 SkScalar dist = std::max(SkScalarAbs(x - pt.fX), SkScalarAbs(y - pt.fY)); in cheap_dist_exceeds_limit()
DSkPathBuilder.cpp289 SkScalar sw = SkScalarAbs(sweepAngle); in angles_to_unit_vectors()
439 SkScalar dist = SkScalarAbs(SkDoubleToScalar(radius * (1 - cosh) / sinh)); in arcTo()
471 SkScalar rx = SkScalarAbs(rad.fX); in arcTo()
472 SkScalar ry = SkScalarAbs(rad.fY); in arcTo()
528 if (SkScalarAbs(thetaArc) < (SK_ScalarPI / (1000 * 1000))) { in arcTo()
536 int segments = SkScalarCeilToInt(SkScalarAbs(thetaArc / (2 * SK_ScalarPI / 3))); in arcTo()
547 bool expectIntegers = SkScalarNearlyZero(SK_ScalarPI/2 - SkScalarAbs(thetaWidth)) && in arcTo()
DSkCubicClipper.cpp54 converged = SkScalarAbs(t1 - t0) <= tol; // NaN-safe in ChopMonoAtY()
101 } while (!(SkScalarAbs(tPos - tNeg) <= tol)); // Nan-safe in ChopMonoAtY()
DSkScalerContext.cpp850 if (SkScalarAbs(GA.get(SkMatrix::kMScaleX)) <= SK_ScalarNearlyZero || in computeMatrices()
851 SkScalarAbs(GA.get(SkMatrix::kMScaleY)) <= SK_ScalarNearlyZero || in computeMatrices()
869 s->fX = SkScalarAbs(GA.get(SkMatrix::kMScaleX)); in computeMatrices()
870 s->fY = SkScalarAbs(GA.get(SkMatrix::kMScaleY)); in computeMatrices()
873 SkScalar yScale = SkScalarAbs(GA.get(SkMatrix::kMScaleY)); in computeMatrices()
879 SkScalar realYScale = SkScalarAbs(GA.get(SkMatrix::kMScaleY)); in computeMatrices()
DSkMatrix.cpp208 return !SkScalarNearlyZero(mx) && SkScalarNearlyEqual(SkScalarAbs(mx), SkScalarAbs(my)); in isSimilarity()
1461 results[0] = std::min(SkScalarAbs(m[SkMatrix::kMScaleX]), in get_scale_factor()
1462 SkScalarAbs(m[SkMatrix::kMScaleY])); in get_scale_factor()
1464 results[0] = std::max(SkScalarAbs(m[SkMatrix::kMScaleX]), in get_scale_factor()
1465 SkScalarAbs(m[SkMatrix::kMScaleY])); in get_scale_factor()
1467 results[0] = SkScalarAbs(m[SkMatrix::kMScaleX]); in get_scale_factor()
1468 results[1] = SkScalarAbs(m[SkMatrix::kMScaleY]); in get_scale_factor()
1881 return SkScalarAbs(SkDoubleToScalar(sk_determinant(jacobian.fMat, true) * denom)); in DifferentialAreaScale()
DSkGeometry.cpp277 b = SkScalarAbs(a - b) < SkScalarAbs(b - c) ? a : c; in SkChopQuadAtYExtrema()
305 b = SkScalarAbs(a - b) < SkScalarAbs(b - c) ? a : c; in SkChopQuadAtXExtrema()
983 SkScalar A = SkScalarAbs(R) + SkScalarSqrt(R2MinusQ3); in solve_cubic_poly()
1644 SkScalar absY = SkScalarAbs(y); in BuildUnitArc()
1667 SkASSERT(SkScalarAbs(x + SK_Scalar1) <= SK_ScalarNearlyZero); in BuildUnitArc()
DSkBlurMF.cpp952 if (SkScalarAbs(rect.fLeft) > 16000.f || SkScalarAbs(rect.fTop) > 16000.f || in make_rect_blur()
953 SkScalarAbs(rect.fRight) > 16000.f || SkScalarAbs(rect.fBottom) > 16000.f) { in make_rect_blur()
1517 outsetX /= SkScalarAbs(viewMatrix.getScaleX()); in directFilterMaskGPU()
1518 outsetY /= SkScalarAbs(viewMatrix.getScaleY()); in directFilterMaskGPU()
DSkDraw.cpp262 radius = SkScalarHalf(width * SkScalarAbs(sx)); in init()
548 return SkPoint::Make(SkScalarAbs(size.fX), SkScalarAbs(size.fY)); in compute_stroke_size()
735 SkScalar x = SkScalarAbs(vec.fX); in fast_len()
736 SkScalar y = SkScalarAbs(vec.fY); in fast_len()
/third_party/skia/gm/
Ddrawatlas.cpp145 const SkScalar max = std::max(std::max(SkScalarAbs(fontb.fLeft), SkScalarAbs(fontb.fRight)),
146 std::max(SkScalarAbs(fontb.fTop), SkScalarAbs(fontb.fBottom)));
/third_party/skia/src/gpu/ops/
DSmallPathRenderer.cpp237 maxScale = SkScalarAbs(std::max(xformedBounds.width() / bounds.width(), in onPrepareDraws()
240 maxScale = SkScalarAbs(args.fViewMatrix.getMaxScale()); in onPrepareDraws()
258 SkScalar mipSize = mipScale*SkScalarAbs(maxDim); in onPrepareDraws()
699 SkScalar minSize = minDim * SkScalarAbs(scaleFactors[0]); in onCanDrawPath()
700 SkScalar maxSize = maxDim * SkScalarAbs(scaleFactors[1]); in onCanDrawPath()
DGrOvalOpFactory.cpp1127 auto absSweep = SkScalarAbs(arcParams->fSweepAngleRadians); in CircleOp()
1838 params.fXRadius = SkScalarAbs(viewMatrix[SkMatrix::kMScaleX] * ellipseXRadius + in Make()
1840 params.fYRadius = SkScalarAbs(viewMatrix[SkMatrix::kMSkewY] * ellipseXRadius + in Make()
1846 scaledStroke.fX = SkScalarAbs( in Make()
1848 scaledStroke.fY = SkScalarAbs( in Make()
3182 SkScalar scaledRadius = SkScalarAbs(radius * (viewMatrix[SkMatrix::kMScaleX] + in MakeCircularRRectOp()
3198 scaledStroke = SkScalarAbs(strokeWidth * (viewMatrix[SkMatrix::kMScaleX] + in MakeCircularRRectOp()
3232 SkScalar xRadius = SkScalarAbs(viewMatrix[SkMatrix::kMScaleX] * radii.fX + in make_rrect_op()
3234 SkScalar yRadius = SkScalarAbs(viewMatrix[SkMatrix::kMSkewX] * radii.fX + in make_rrect_op()
3251 scaledStroke.fX = SkScalarAbs( in make_rrect_op()
[all …]
/third_party/skia/tests/
DGrQuadCropTest.cpp179 static const float kInsideEdge = SkScalarAbs(kDrawRect.fLeft) - 1.f; in test_axis_aligned_all_clips()
180 static const float kOutsideEdge = SkScalarAbs(kDrawRect.fBottom) + 1.f; in test_axis_aligned_all_clips()
181 static const float kIntersectEdge = SkScalarAbs(kDrawRect.fTop) + 1.f; in test_axis_aligned_all_clips()
DClipCubicTest.cpp52 if (SkScalarAbs(c0[i].fX - c1[i].fX) > tol || in CurvesAreEqual()
53 SkScalarAbs(c0[i].fY - c1[i].fY) > tol in CurvesAreEqual()
DCubicMapTest.cpp57 SkScalar diff = SkScalarAbs(yy - y); in exercise_cubicmap()
/third_party/skia/tools/viewer/
DTouchGesture.cpp41 if (SkScalarAbs(unit->fX) < TOLERANCE) { in unit_axis_align()
44 } else if (SkScalarAbs(unit->fY) < TOLERANCE) { in unit_axis_align()
/third_party/skia/src/pathops/
DSkOpEdgeBuilder.cpp24 if (SkScalarAbs(ret.fX) < FLT_EPSILON_ORDERABLE_ERR) { in force_small_to_zero()
27 if (SkScalarAbs(ret.fY) < FLT_EPSILON_ORDERABLE_ERR) { in force_small_to_zero()
/third_party/skia/src/gpu/v1/
DDevice_drawTexture.cpp46 …if (SkScalarAbs(SkScalarRoundToScalar(transformedRect.left()) - transformedRect.left()) < kColorBl… in has_aligned_samples()
47SkScalarAbs(SkScalarRoundToScalar(transformedRect.top()) - transformedRect.top()) < kColorBleedT… in has_aligned_samples()
48 SkScalarAbs(transformedRect.width() - srcRect.width()) < kColorBleedTolerance && in has_aligned_samples()
49 SkScalarAbs(transformedRect.height() - srcRect.height()) < kColorBleedTolerance) { in has_aligned_samples()

12