Home
last modified time | relevance | path

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

12

/external/skia/src/gpu/
DGrClip.h129 return SkScalarAbs(SkScalarRoundToScalar(rect.fLeft) - rect.fLeft) <= kBoundsTolerance && in IsPixelAligned()
130 SkScalarAbs(SkScalarRoundToScalar(rect.fTop) - rect.fTop) <= kBoundsTolerance && in IsPixelAligned()
131 SkScalarAbs(SkScalarRoundToScalar(rect.fRight) - rect.fRight) <= kBoundsTolerance && in IsPixelAligned()
132 SkScalarAbs(SkScalarRoundToScalar(rect.fBottom) - rect.fBottom) <= kBoundsTolerance; in IsPixelAligned()
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()
DGrStyle.h150 return SkScalarAbs(matrix.getMaxScale()); in MatrixToScaleFactor()
/external/skia/src/utils/
DSkMatrix22.cpp25 } else if (SkScalarAbs(b) > SkScalarAbs(a)) { in SkComputeGivensRotation()
/external/skia/gm/
Ddrawatlas.cpp135 const SkScalar max = SkTMax(SkTMax(SkScalarAbs(font.fLeft), SkScalarAbs(font.fRight)),
136 SkTMax(SkScalarAbs(font.fTop), SkScalarAbs(font.fBottom)));
/external/skia/include/core/
DSkScalar.h38 #define SkScalarAbs(x) sk_float_abs(x) macro
172 return SkScalarAbs(x) <= tolerance;
178 return SkScalarAbs(x-y) <= tolerance;
DSkPoint.h193 fX = SkScalarAbs(pt.fX); in setAbs()
194 fY = SkScalarAbs(pt.fY); in setAbs()
/external/skia/src/core/
DSkBitmapController.cpp69 return size < (maximumAllocation * SkScalarAbs(invScaleSqr)); in cache_size_okay()
111 invScaleX = SkScalarAbs(invScaleX); in processHQRequest()
112 invScaleY = SkScalarAbs(invScaleY); in processHQRequest()
DSkCubicClipper.cpp52 converged = SkScalarAbs(t1 - t0) <= tol; // NaN-safe in ChopMonoAtY()
99 } while (!(SkScalarAbs(tPos - tNeg) <= tol)); // Nan-safe in ChopMonoAtY()
DSkPathMeasure.cpp149 SkScalar dist = SkMaxScalar(SkScalarAbs(dx), SkScalarAbs(dy)); in quad_too_curvy()
158 SkScalar dist = SkMaxScalar(SkScalarAbs(dxy.fX), SkScalarAbs(dxy.fY)); in conic_too_curvy()
164 SkScalar dist = SkMaxScalar(SkScalarAbs(x - pt.fX), SkScalarAbs(y - pt.fY)); in cheap_dist_exceeds_limit()
DSkPathRef.cpp628 dxdy.set(SkScalarAbs(v1_0.fX), SkScalarAbs(v2_1.fY)); in getRRect()
631 dxdy.set(SkScalarAbs(v2_1.fX), SkScalarAbs(v2_1.fY)); in getRRect()
634 dxdy.set(SkScalarAbs(v2_1.fX), SkScalarAbs(v1_0.fY)); in getRRect()
DSkScalerContext.cpp740 if (SkScalarAbs(GA.get(SkMatrix::kMScaleX)) <= SK_ScalarNearlyZero || in computeMatrices()
741 SkScalarAbs(GA.get(SkMatrix::kMScaleY)) <= SK_ScalarNearlyZero) in computeMatrices()
758 s->fX = SkScalarAbs(GA.get(SkMatrix::kMScaleX)); in computeMatrices()
759 s->fY = SkScalarAbs(GA.get(SkMatrix::kMScaleY)); in computeMatrices()
762 SkScalar yScale = SkScalarAbs(GA.get(SkMatrix::kMScaleY)); in computeMatrices()
768 SkScalar realYScale = SkScalarAbs(GA.get(SkMatrix::kMScaleY)); in computeMatrices()
DSkGeometry.cpp200 b = SkScalarAbs(a - b) < SkScalarAbs(b - c) ? a : c; in SkChopQuadAtYExtrema()
228 b = SkScalarAbs(a - b) < SkScalarAbs(b - c) ? a : c; in SkChopQuadAtXExtrema()
802 SkScalar A = SkScalarAbs(R) + SkScalarSqrt(R2MinusQ3); in solve_cubic_poly()
1369 SkScalar absY = SkScalarAbs(y); in BuildUnitArc()
1392 SkASSERT(SkScalarAbs(x + SK_Scalar1) <= SK_ScalarNearlyZero); in BuildUnitArc()
DSkLinearBitmapPipeline_tile.h177 if (SkScalarAbs(dx) >= fXMax || count <= 1) { in maybeProcessSpan()
400 SkScalar answer = SkMinScalar(SkScalarAbs(unbias), fYCap); in tileY()
DSkBlurImageFilter.cpp80 sigma.fX = SkMinScalar(SkScalarAbs(sigma.fX), MAX_SIGMA); in map_sigma()
81 sigma.fY = SkMinScalar(SkScalarAbs(sigma.fY), MAX_SIGMA); in map_sigma()
DSkDistanceFieldGen.cpp120 dx = SkScalarAbs(dx); in edge_distance()
121 dy = SkScalarAbs(dy); in edge_distance()
DSkMatrix.cpp213 return !SkScalarNearlyZero(mx) && SkScalarNearlyEqual(SkScalarAbs(mx), SkScalarAbs(my)); in isSimilarity()
1471 results[0] = SkMinScalar(SkScalarAbs(m[SkMatrix::kMScaleX]), in get_scale_factor()
1472 SkScalarAbs(m[SkMatrix::kMScaleY])); in get_scale_factor()
1474 results[0] = SkMaxScalar(SkScalarAbs(m[SkMatrix::kMScaleX]), in get_scale_factor()
1475 SkScalarAbs(m[SkMatrix::kMScaleY])); in get_scale_factor()
1477 results[0] = SkScalarAbs(m[SkMatrix::kMScaleX]); in get_scale_factor()
1478 results[1] = SkScalarAbs(m[SkMatrix::kMScaleY]); in get_scale_factor()
/external/skia/tests/
DClipCubicTest.cpp47 if (SkScalarAbs(c0[i].fX - c1[i].fX) > tol || in CurvesAreEqual()
48 SkScalarAbs(c0[i].fY - c1[i].fY) > tol in CurvesAreEqual()
/external/skia/src/effects/
DSkDropShadowImageFilter.cpp151 SkScalarCeilToInt(SkScalarAbs(sigma.x() * 3)), in onFilterNodeBounds()
152 SkScalarCeilToInt(SkScalarAbs(sigma.y() * 3))); in onFilterNodeBounds()
DSkDisplacementMapEffect.cpp377 bounds.outset(SkScalarAbs(fScale) * SK_ScalarHalf, SkScalarAbs(fScale) * SK_ScalarHalf); in computeFastBounds()
385 return src.makeOutset(SkScalarCeilToInt(SkScalarAbs(scale.fX) * SK_ScalarHalf), in onFilterNodeBounds()
386 SkScalarCeilToInt(SkScalarAbs(scale.fY) * SK_ScalarHalf)); in onFilterNodeBounds()
/external/skia/src/views/
DSkTouchGesture.cpp41 if (SkScalarAbs(unit->fX) < TOLERANCE) { in unit_axis_align()
44 } else if (SkScalarAbs(unit->fY) < TOLERANCE) { in unit_axis_align()
/external/skia/src/gpu/ops/
DGrSmallPathRenderer.cpp121 SkScalar minSize = minDim * SkScalarAbs(scaleFactors[0]); in onCanDrawPath()
122 SkScalar maxSize = maxDim * SkScalarAbs(scaleFactors[1]); in onCanDrawPath()
284 maxScale = SkScalarAbs(this->viewMatrix().getMaxScale()); in onPrepareDraws()
300 SkScalar mipSize = mipScale*SkScalarAbs(maxDim); in onPrepareDraws()
DGrOvalOpFactory.cpp702 !SkScalarNearlyEqual(SkScalarAbs(arcParams->fSweepAngleRadians), SK_ScalarPI); in CircleOp()
712 if (SkScalarAbs(arcParams->fSweepAngleRadians) > SK_ScalarPI) { in CircleOp()
1171 params.fXRadius = SkScalarAbs(viewMatrix[SkMatrix::kMScaleX] * ellipseXRadius + in Make()
1173 params.fYRadius = SkScalarAbs(viewMatrix[SkMatrix::kMSkewY] * ellipseXRadius + in Make()
1179 scaledStroke.fX = SkScalarAbs( in Make()
1181 scaledStroke.fY = SkScalarAbs( in Make()
2301 SkScalar xRadius = SkScalarAbs(viewMatrix[SkMatrix::kMScaleX] * radii.fX + in make_rrect_op()
2303 SkScalar yRadius = SkScalarAbs(viewMatrix[SkMatrix::kMSkewX] * radii.fX + in make_rrect_op()
2321 scaledStroke.fX = SkScalarAbs( in make_rrect_op()
2323 scaledStroke.fY = SkScalarAbs( in make_rrect_op()
[all …]
/external/skia/src/pathops/
DSkOpEdgeBuilder.cpp21 if (SkScalarAbs(pt->fX) < FLT_EPSILON_ORDERABLE_ERR) { in force_small_to_zero()
24 if (SkScalarAbs(pt->fY) < FLT_EPSILON_ORDERABLE_ERR) { in force_small_to_zero()
/external/skia/src/shaders/
DSkPictureShader.cpp214 SkSize scaledSize = SkSize::Make(SkScalarAbs(scale.x() * fTile.width()), in refBitmapShader()
215 SkScalarAbs(scale.y() * fTile.height())); in refBitmapShader()

12