/external/skia/src/gpu/ |
D | GrClip.h | 129 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()
|
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 | GrStyle.h | 150 return SkScalarAbs(matrix.getMaxScale()); in MatrixToScaleFactor()
|
/external/skia/src/utils/ |
D | SkMatrix22.cpp | 25 } else if (SkScalarAbs(b) > SkScalarAbs(a)) { in SkComputeGivensRotation()
|
/external/skia/gm/ |
D | drawatlas.cpp | 135 const SkScalar max = SkTMax(SkTMax(SkScalarAbs(font.fLeft), SkScalarAbs(font.fRight)), 136 SkTMax(SkScalarAbs(font.fTop), SkScalarAbs(font.fBottom)));
|
/external/skia/include/core/ |
D | SkScalar.h | 38 #define SkScalarAbs(x) sk_float_abs(x) macro 172 return SkScalarAbs(x) <= tolerance; 178 return SkScalarAbs(x-y) <= tolerance;
|
D | SkPoint.h | 193 fX = SkScalarAbs(pt.fX); in setAbs() 194 fY = SkScalarAbs(pt.fY); in setAbs()
|
/external/skia/src/core/ |
D | SkBitmapController.cpp | 69 return size < (maximumAllocation * SkScalarAbs(invScaleSqr)); in cache_size_okay() 111 invScaleX = SkScalarAbs(invScaleX); in processHQRequest() 112 invScaleY = SkScalarAbs(invScaleY); in processHQRequest()
|
D | SkCubicClipper.cpp | 52 converged = SkScalarAbs(t1 - t0) <= tol; // NaN-safe in ChopMonoAtY() 99 } while (!(SkScalarAbs(tPos - tNeg) <= tol)); // Nan-safe in ChopMonoAtY()
|
D | SkPathMeasure.cpp | 149 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()
|
D | SkPathRef.cpp | 628 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()
|
D | SkScalerContext.cpp | 740 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()
|
D | SkGeometry.cpp | 200 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()
|
D | SkLinearBitmapPipeline_tile.h | 177 if (SkScalarAbs(dx) >= fXMax || count <= 1) { in maybeProcessSpan() 400 SkScalar answer = SkMinScalar(SkScalarAbs(unbias), fYCap); in tileY()
|
D | SkBlurImageFilter.cpp | 80 sigma.fX = SkMinScalar(SkScalarAbs(sigma.fX), MAX_SIGMA); in map_sigma() 81 sigma.fY = SkMinScalar(SkScalarAbs(sigma.fY), MAX_SIGMA); in map_sigma()
|
D | SkDistanceFieldGen.cpp | 120 dx = SkScalarAbs(dx); in edge_distance() 121 dy = SkScalarAbs(dy); in edge_distance()
|
D | SkMatrix.cpp | 213 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/ |
D | ClipCubicTest.cpp | 47 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/ |
D | SkDropShadowImageFilter.cpp | 151 SkScalarCeilToInt(SkScalarAbs(sigma.x() * 3)), in onFilterNodeBounds() 152 SkScalarCeilToInt(SkScalarAbs(sigma.y() * 3))); in onFilterNodeBounds()
|
D | SkDisplacementMapEffect.cpp | 377 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/ |
D | SkTouchGesture.cpp | 41 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/ |
D | GrSmallPathRenderer.cpp | 121 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()
|
D | GrOvalOpFactory.cpp | 702 !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/ |
D | SkOpEdgeBuilder.cpp | 21 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/ |
D | SkPictureShader.cpp | 214 SkSize scaledSize = SkSize::Make(SkScalarAbs(scale.x() * fTile.width()), in refBitmapShader() 215 SkScalarAbs(scale.y() * fTile.height())); in refBitmapShader()
|