/external/skia/src/gpu/ |
D | SkGpuDevice_drawTexture.cpp | 33 …if (SkScalarAbs(SkScalarRoundToScalar(transformedRect.left()) - transformedRect.left()) < kColorBl… in has_aligned_samples() 34 …SkScalarAbs(SkScalarRoundToScalar(transformedRect.top()) - transformedRect.top()) < kColorBleedT… in has_aligned_samples() 35 SkScalarAbs(transformedRect.width() - srcRect.width()) < kColorBleedTolerance && in has_aligned_samples() 36 SkScalarAbs(transformedRect.height() - srcRect.height()) < kColorBleedTolerance) { in has_aligned_samples()
|
D | GrOvalRenderer.cpp | 1005 SkScalar xRadius = SkScalarAbs(viewMatrix[SkMatrix::kMScaleX]*ellipseXRadius + in create_ellipse_batch() 1007 SkScalar yRadius = SkScalarAbs(viewMatrix[SkMatrix::kMSkewX]*ellipseXRadius + in create_ellipse_batch() 1013 scaledStroke.fX = SkScalarAbs(strokeWidth*(viewMatrix[SkMatrix::kMScaleX] + in create_ellipse_batch() 1015 scaledStroke.fY = SkScalarAbs(strokeWidth*(viewMatrix[SkMatrix::kMSkewX] + in create_ellipse_batch() 1751 SkScalar xRadius = SkScalarAbs(viewMatrix[SkMatrix::kMScaleX]*radii.fX + in create_rrect_batch() 1753 SkScalar yRadius = SkScalarAbs(viewMatrix[SkMatrix::kMSkewX]*radii.fX + in create_rrect_batch() 1770 scaledStroke.fX = SkScalarAbs(strokeWidth*(viewMatrix[SkMatrix::kMScaleX] + in create_rrect_batch() 1772 scaledStroke.fY = SkScalarAbs(strokeWidth*(viewMatrix[SkMatrix::kMSkewX] + in create_rrect_batch()
|
D | GrDrawContext.cpp | 618 SkScalar margin = SkScalarAbs(outer[0] - inner[0]); in is_nested_rects() 622 SkScalar temp = SkScalarAbs(outer[i] - inner[i]); in is_nested_rects() 782 dashlessStrokeInfo.setResScale(SkScalarAbs(viewMatrix.getMaxScale())); in internalDrawPath()
|
D | GrPathUtils.cpp | 299 SkASSERT(SkScalarAbs(m.get(SkMatrix::kMPersp0)) < gTOL); in set() 300 SkASSERT(SkScalarAbs(m.get(SkMatrix::kMPersp1)) < gTOL); in set() 345 scale = SkMaxScalar(scale, SkScalarAbs(klm[i])); in getConicKLM()
|
/external/skia/src/utils/ |
D | SkMatrix22.cpp | 25 } else if (SkScalarAbs(b) > SkScalarAbs(a)) { in SkComputeGivensRotation()
|
/external/skia/src/core/ |
D | SkBitmapController.cpp | 69 return size < (maximumAllocation * SkScalarAbs(invScaleSqr)); in cache_size_okay() 101 invScaleX = SkScalarAbs(invScaleX); in processHQRequest() 102 invScaleY = SkScalarAbs(invScaleY); in processHQRequest()
|
D | SkPathRef.cpp | 503 dxdy.set(SkScalarAbs(v1_0.fX), SkScalarAbs(v2_1.fY)); in getRRect() 506 dxdy.set(SkScalarAbs(v2_1.fX), SkScalarAbs(v2_1.fY)); in getRRect() 509 dxdy.set(SkScalarAbs(v2_1.fX), SkScalarAbs(v1_0.fY)); in getRRect()
|
D | SkCubicClipper.cpp | 53 converged = SkScalarAbs(t1 - t0) <= tol; // NaN-safe in ChopMonoAtY() 100 } while (!(SkScalarAbs(tPos - tNeg) <= tol)); // Nan-safe in ChopMonoAtY()
|
D | SkPathMeasure.cpp | 64 SkScalar dist = SkMaxScalar(SkScalarAbs(dx), SkScalarAbs(dy)); in quad_too_curvy() 73 SkScalar dist = SkMaxScalar(SkScalarAbs(dxy.fX), SkScalarAbs(dxy.fY)); in conic_too_curvy() 79 SkScalar dist = SkMaxScalar(SkScalarAbs(x - pt.fX), SkScalarAbs(y - pt.fY)); in cheap_dist_exceeds_limit()
|
D | SkGeometry.cpp | 206 b = SkScalarAbs(a - b) < SkScalarAbs(b - c) ? a : c; in SkChopQuadAtYExtrema() 234 b = SkScalarAbs(a - b) < SkScalarAbs(b - c) ? a : c; in SkChopQuadAtXExtrema() 622 SkScalar max = SkScalarAbs(a1); in calc_cubic_inflection_func() 623 max = SkMaxScalar(max, SkScalarAbs(a2)); in calc_cubic_inflection_func() 624 max = SkMaxScalar(max, SkScalarAbs(a3)); in calc_cubic_inflection_func() 770 SkScalar A = SkScalarAbs(R) + SkScalarSqrt(R2MinusQ3); in solve_cubic_poly() 1269 SkScalar absY = SkScalarAbs(y); in BuildUnitArc() 1292 SkASSERT(SkScalarAbs(x + SK_Scalar1) <= SK_ScalarNearlyZero); in BuildUnitArc()
|
D | SkScalerContext.cpp | 783 s->fX = SkScalarAbs(GA.get(SkMatrix::kMScaleX)); in computeMatrices() 784 s->fY = SkScalarAbs(GA.get(SkMatrix::kMScaleY)); in computeMatrices() 787 SkScalar yScale = SkScalarAbs(GA.get(SkMatrix::kMScaleY)); in computeMatrices() 793 SkScalar realYScale = SkScalarAbs(GA.get(SkMatrix::kMScaleY)); in computeMatrices()
|
D | SkPictureShader.cpp | 178 SkSize scaledSize = SkSize::Make(SkScalarAbs(scale.x() * fTile.width()), in refBitmapShader() 179 SkScalarAbs(scale.y() * fTile.height())); in refBitmapShader()
|
D | SkMatrix.cpp | 214 return !SkScalarNearlyZero(mx) && SkScalarNearlyEqual(SkScalarAbs(mx), SkScalarAbs(my)); in isSimilarity() 1421 results[0] = SkMinScalar(SkScalarAbs(m[SkMatrix::kMScaleX]), in get_scale_factor() 1422 SkScalarAbs(m[SkMatrix::kMScaleY])); in get_scale_factor() 1424 results[0] = SkMaxScalar(SkScalarAbs(m[SkMatrix::kMScaleX]), in get_scale_factor() 1425 SkScalarAbs(m[SkMatrix::kMScaleY])); in get_scale_factor() 1427 results[0] = SkScalarAbs(m[SkMatrix::kMScaleX]); in get_scale_factor() 1428 results[1] = SkScalarAbs(m[SkMatrix::kMScaleY]); in get_scale_factor()
|
D | SkDistanceFieldGen.cpp | 118 dx = SkScalarAbs(dx); in edge_distance() 119 dy = SkScalarAbs(dy); in edge_distance()
|
/external/skia/include/core/ |
D | SkScalar.h | 46 #define SkScalarAbs(x) sk_float_abs(x) macro 89 #define SkScalarAbs(x) abs(x) macro 223 return SkScalarAbs(x) <= tolerance; 229 return SkScalarAbs(x-y) <= tolerance;
|
D | SkPoint.h | 193 fX = SkScalarAbs(pt.fX); in setAbs() 194 fY = SkScalarAbs(pt.fY); in setAbs()
|
/external/skia/tests/ |
D | ClipCubicTest.cpp | 46 if (SkScalarAbs(c0[i].fX - c1[i].fX) > tol || in CurvesAreEqual() 47 SkScalarAbs(c0[i].fY - c1[i].fY) > tol in CurvesAreEqual()
|
D | MatrixTest.cpp | 16 return SkScalarAbs(a - b) <= tolerance; in nearly_equal_scalar() 453 SkScalar diff = SkScalarAbs(a - b); in scalar_nearly_equal_relative() 459 a = SkScalarAbs(a); in scalar_nearly_equal_relative() 460 b = SkScalarAbs(b); in scalar_nearly_equal_relative()
|
/external/skia/src/pathops/ |
D | SkOpEdgeBuilder.cpp | 63 if (SkScalarAbs(pt->fX) < FLT_EPSILON_ORDERABLE_ERR) { in force_small_to_zero() 66 if (SkScalarAbs(pt->fY) < FLT_EPSILON_ORDERABLE_ERR) { in force_small_to_zero()
|
/external/skia/src/views/ |
D | SkTouchGesture.cpp | 42 if (SkScalarAbs(unit->fX) < TOLERANCE) { in unit_axis_align() 45 } else if (SkScalarAbs(unit->fY) < TOLERANCE) { in unit_axis_align()
|
/external/skia/src/effects/ |
D | SkDisplacementMapEffect.cpp | 274 dst->outset(SkScalarAbs(fScale) * SK_ScalarHalf, SkScalarAbs(fScale) * SK_ScalarHalf); in computeFastBounds() 282 dst->outset(SkScalarCeilToInt(SkScalarAbs(scale.fX) * SK_ScalarHalf), in onFilterNodeBounds() 283 SkScalarCeilToInt(SkScalarAbs(scale.fY) * SK_ScalarHalf)); in onFilterNodeBounds()
|
D | SkBlurImageFilter.cpp | 31 sigma.fX = SkMinScalar(SkScalarAbs(sigma.fX), MAX_SIGMA); in map_sigma() 32 sigma.fY = SkMinScalar(SkScalarAbs(sigma.fY), MAX_SIGMA); in map_sigma()
|
D | SkBlurMaskFilter.cpp | 633 if (SkScalarAbs(rect.top()) > kMAX_BLUR_COORD || in Create() 634 SkScalarAbs(rect.left()) > kMAX_BLUR_COORD || in Create() 635 SkScalarAbs(rect.bottom()) > kMAX_BLUR_COORD || in Create() 636 SkScalarAbs(rect.right()) > kMAX_BLUR_COORD || in Create() 637 SkScalarAbs(rect.width()) > kMAX_BLUR_COORD || in Create() 638 SkScalarAbs(rect.height()) > kMAX_BLUR_COORD) { in Create()
|
/external/skia/src/animator/ |
D | SkDisplayMath.cpp | 143 scalarResult = SkScalarAbs(input); in executeFunction()
|
/external/skia/src/effects/gradients/ |
D | SkTwoPointConicalGradient_gpu.cpp | 110 SkASSERT(SkScalarAbs(SkScalarAbs(fDiffRadius) - fCenterX1) < in Edge2PtConicalEffect() 352 if (SkScalarAbs(1.f - (*focalX)) < kEdgeErrorTol) { in set_matrix_focal_conical() 809 if (SkScalarAbs(A) < kEdgeErrorTol) { in set_matrix_circle_conical()
|