Home
last modified time | relevance | path

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

12

/external/skia/src/gpu/
DSkGpuDevice_drawTexture.cpp33 …if (SkScalarAbs(SkScalarRoundToScalar(transformedRect.left()) - transformedRect.left()) < kColorBl… in has_aligned_samples()
34SkScalarAbs(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()
DGrOvalRenderer.cpp1005 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()
DGrDrawContext.cpp618 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()
DGrPathUtils.cpp299 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/
DSkMatrix22.cpp25 } else if (SkScalarAbs(b) > SkScalarAbs(a)) { in SkComputeGivensRotation()
/external/skia/src/core/
DSkBitmapController.cpp69 return size < (maximumAllocation * SkScalarAbs(invScaleSqr)); in cache_size_okay()
101 invScaleX = SkScalarAbs(invScaleX); in processHQRequest()
102 invScaleY = SkScalarAbs(invScaleY); in processHQRequest()
DSkPathRef.cpp503 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()
DSkCubicClipper.cpp53 converged = SkScalarAbs(t1 - t0) <= tol; // NaN-safe in ChopMonoAtY()
100 } while (!(SkScalarAbs(tPos - tNeg) <= tol)); // Nan-safe in ChopMonoAtY()
DSkPathMeasure.cpp64 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()
DSkGeometry.cpp206 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()
DSkScalerContext.cpp783 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()
DSkPictureShader.cpp178 SkSize scaledSize = SkSize::Make(SkScalarAbs(scale.x() * fTile.width()), in refBitmapShader()
179 SkScalarAbs(scale.y() * fTile.height())); in refBitmapShader()
DSkMatrix.cpp214 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()
DSkDistanceFieldGen.cpp118 dx = SkScalarAbs(dx); in edge_distance()
119 dy = SkScalarAbs(dy); in edge_distance()
/external/skia/include/core/
DSkScalar.h46 #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;
DSkPoint.h193 fX = SkScalarAbs(pt.fX); in setAbs()
194 fY = SkScalarAbs(pt.fY); in setAbs()
/external/skia/tests/
DClipCubicTest.cpp46 if (SkScalarAbs(c0[i].fX - c1[i].fX) > tol || in CurvesAreEqual()
47 SkScalarAbs(c0[i].fY - c1[i].fY) > tol in CurvesAreEqual()
DMatrixTest.cpp16 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/
DSkOpEdgeBuilder.cpp63 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/
DSkTouchGesture.cpp42 if (SkScalarAbs(unit->fX) < TOLERANCE) { in unit_axis_align()
45 } else if (SkScalarAbs(unit->fY) < TOLERANCE) { in unit_axis_align()
/external/skia/src/effects/
DSkDisplacementMapEffect.cpp274 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()
DSkBlurImageFilter.cpp31 sigma.fX = SkMinScalar(SkScalarAbs(sigma.fX), MAX_SIGMA); in map_sigma()
32 sigma.fY = SkMinScalar(SkScalarAbs(sigma.fY), MAX_SIGMA); in map_sigma()
DSkBlurMaskFilter.cpp633 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/
DSkDisplayMath.cpp143 scalarResult = SkScalarAbs(input); in executeFunction()
/external/skia/src/effects/gradients/
DSkTwoPointConicalGradient_gpu.cpp110 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()

12