/third_party/skia/src/gpu/ |
D | GrClip.h | 192 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/ |
D | SkDropShadowImageFilter.cpp | 135 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()
|
D | SkDisplacementMapImageFilter.cpp | 374 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/ |
D | SkMatrix22.cpp | 25 } else if (SkScalarAbs(b) > SkScalarAbs(a)) { in SkComputeGivensRotation()
|
/third_party/skia/include/core/ |
D | SkScalar.h | 38 #define SkScalarAbs(x) sk_float_abs(x) macro 139 return SkScalarAbs(x) <= tolerance; 145 return SkScalarAbs(x-y) <= tolerance;
|
D | SkPoint.h | 243 fX = SkScalarAbs(pt.fX); in setAbs() 244 fY = SkScalarAbs(pt.fY); in setAbs()
|
/third_party/skia/src/shaders/gradients/ |
D | SkTwoPointConicalGradient.cpp | 38 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/ |
D | SkPathRef.cpp | 517 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()
|
D | SkContourMeasure.cpp | 145 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()
|
D | SkPathBuilder.cpp | 289 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()
|
D | SkCubicClipper.cpp | 54 converged = SkScalarAbs(t1 - t0) <= tol; // NaN-safe in ChopMonoAtY() 101 } while (!(SkScalarAbs(tPos - tNeg) <= tol)); // Nan-safe in ChopMonoAtY()
|
D | SkScalerContext.cpp | 850 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()
|
D | SkMatrix.cpp | 208 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()
|
D | SkGeometry.cpp | 277 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()
|
D | SkBlurMF.cpp | 952 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()
|
D | SkDraw.cpp | 262 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/ |
D | drawatlas.cpp | 145 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/ |
D | SmallPathRenderer.cpp | 237 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()
|
D | GrOvalOpFactory.cpp | 1127 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/ |
D | GrQuadCropTest.cpp | 179 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()
|
D | ClipCubicTest.cpp | 52 if (SkScalarAbs(c0[i].fX - c1[i].fX) > tol || in CurvesAreEqual() 53 SkScalarAbs(c0[i].fY - c1[i].fY) > tol in CurvesAreEqual()
|
D | CubicMapTest.cpp | 57 SkScalar diff = SkScalarAbs(yy - y); in exercise_cubicmap()
|
/third_party/skia/tools/viewer/ |
D | TouchGesture.cpp | 41 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/ |
D | SkOpEdgeBuilder.cpp | 24 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/ |
D | Device_drawTexture.cpp | 46 …if (SkScalarAbs(SkScalarRoundToScalar(transformedRect.left()) - transformedRect.left()) < kColorBl… in has_aligned_samples() 47 …SkScalarAbs(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()
|