/external/skia/include/core/ |
D | SkMatrix.h | 28 static SkMatrix SK_WARN_UNUSED_RESULT MakeScale(SkScalar sx, SkScalar sy) { in MakeScale() 34 static SkMatrix SK_WARN_UNUSED_RESULT MakeScale(SkScalar scale) { in MakeScale() 40 static SkMatrix SK_WARN_UNUSED_RESULT MakeTrans(SkScalar dx, SkScalar dy) { in MakeTrans() 105 bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const; 111 bool preservesRightAngles(SkScalar tol = SK_ScalarNearlyZero) const; 137 SkScalar operator[](int index) const { 142 SkScalar get(int index) const { in get() 147 SkScalar getScaleX() const { return fMat[kMScaleX]; } in getScaleX() 148 SkScalar getScaleY() const { return fMat[kMScaleY]; } in getScaleY() 149 SkScalar getSkewY() const { return fMat[kMSkewY]; } in getSkewY() [all …]
|
D | SkPath.h | 58 bool interpolate(const SkPath& ending, SkScalar weight, SkPath* out) const; 355 void moveTo(SkScalar x, SkScalar y); 374 void rMoveTo(SkScalar dx, SkScalar dy); 383 void lineTo(SkScalar x, SkScalar y); 404 void rLineTo(SkScalar dx, SkScalar dy); 415 void quadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2); 441 void rQuadTo(SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2); 443 void conicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, 444 SkScalar w); 445 void conicTo(const SkPoint& p1, const SkPoint& p2, SkScalar w) { in conicTo() [all …]
|
D | SkScalar.h | 22 typedef float SkScalar; typedef 65 typedef double SkScalar; typedef 110 #define SkIntToScalar(x) static_cast<SkScalar>(x) 114 #define SkFloatToScalar(x) static_cast<SkScalar>(x) 116 #define SkDoubleToScalar(x) static_cast<SkScalar>(x) 120 static inline bool SkScalarIsNaN(SkScalar x) { return x != x; } in SkScalarIsNaN() 124 static inline bool SkScalarIsFinite(SkScalar x) { in SkScalarIsFinite() 129 SkScalar prod = x * 0; in SkScalarIsFinite() 134 static inline bool SkScalarsAreFinite(SkScalar a, SkScalar b) { in SkScalarsAreFinite() 135 SkScalar prod = 0; in SkScalarsAreFinite() [all …]
|
D | SkRSXform.h | 21 static SkRSXform Make(SkScalar scos, SkScalar ssin, SkScalar tx, SkScalar ty) { in Make() 32 static SkRSXform MakeFromRadians(SkScalar scale, SkScalar radians, SkScalar tx, SkScalar ty, in MakeFromRadians() 33 SkScalar ax, SkScalar ay) { in MakeFromRadians() 34 const SkScalar s = SkScalarSin(radians) * scale; in MakeFromRadians() 35 const SkScalar c = SkScalarCos(radians) * scale; in MakeFromRadians() 39 SkScalar fSCos; 40 SkScalar fSSin; 41 SkScalar fTx; 42 SkScalar fTy; 53 void set(SkScalar scos, SkScalar ssin, SkScalar tx, SkScalar ty) { in set() [all …]
|
D | SkPoint.h | 157 SkScalar fX, fY; 159 static SkPoint Make(SkScalar x, SkScalar y) { in Make() 165 SkScalar x() const { return fX; } in x() 166 SkScalar y() const { return fY; } in y() 174 void set(SkScalar x, SkScalar y) { fX = x; fY = y; } in set() 208 void setRectFan(SkScalar l, SkScalar t, SkScalar r, SkScalar b) { in setRectFan() 216 void setRectFan(SkScalar l, SkScalar t, SkScalar r, SkScalar b, size_t stride) { in setRectFan() 230 static void Offset(SkPoint points[], int count, SkScalar dx, SkScalar dy) { in Offset() 236 void offset(SkScalar dx, SkScalar dy) { in offset() 243 SkScalar length() const { return SkPoint::Length(fX, fY); } in length() [all …]
|
D | SkPaint.h | 370 SkScalar getStrokeWidth() const { return fWidth; } in getStrokeWidth() 378 void setStrokeWidth(SkScalar width); 385 SkScalar getStrokeMiter() const { return fMiterLimit; } in getStrokeMiter() 393 void setStrokeMiter(SkScalar miter); 469 SkScalar resScale = 1) const; 672 SkScalar getTextSize() const { return fTextSize; } in getTextSize() 677 void setTextSize(SkScalar textSize); 683 SkScalar getTextScaleX() const { return fTextScaleX; } in getTextScaleX() 691 void setTextScaleX(SkScalar scaleX); 697 SkScalar getTextSkewX() const { return fTextSkewX; } in getTextSkewX() [all …]
|
D | SkPathMeasure.h | 27 SkPathMeasure(const SkPath& path, bool forceClosed, SkScalar resScale = 1); 40 SkScalar getLength(); 47 bool SK_WARN_UNUSED_RESULT getPosTan(SkScalar distance, SkPoint* position, 61 bool SK_WARN_UNUSED_RESULT getMatrix(SkScalar distance, SkMatrix* matrix, 70 bool getSegment(SkScalar startD, SkScalar stopD, SkPath* dst, bool startWithMoveTo); 88 SkScalar fTolerance; 89 SkScalar fLength; // relative to the current contour 95 SkScalar fDistance; // total distance up to this point 100 SkScalar getScalarT() const; 108 SkScalar compute_quad_segs(const SkPoint pts[3], SkScalar distance, [all …]
|
D | SkRect.h | 391 SkScalar fLeft, fTop, fRight, fBottom; 405 static SkRect SK_WARN_UNUSED_RESULT MakeWH(SkScalar w, SkScalar h) { in MakeWH() 423 static SkRect SK_WARN_UNUSED_RESULT MakeLTRB(SkScalar l, SkScalar t, SkScalar r, SkScalar b) { in MakeLTRB() 429 static SkRect SK_WARN_UNUSED_RESULT MakeXYWH(SkScalar x, SkScalar y, SkScalar w, SkScalar h) { in MakeXYWH() 483 SkScalar x() const { return fLeft; } in x() 484 SkScalar y() const { return fTop; } in y() 485 SkScalar left() const { return fLeft; } in left() 486 SkScalar top() const { return fTop; } in top() 487 SkScalar right() const { return fRight; } in right() 488 SkScalar bottom() const { return fBottom; } in bottom() [all …]
|
/external/skia/include/utils/ |
D | SkCamera.h | 18 SkScalar fX, fY, fZ; 20 void set(SkScalar x, SkScalar y, SkScalar z) { in set() 23 static SkScalar Dot(const SkUnit3D&, const SkUnit3D&); 28 SkScalar fX, fY, fZ; 30 void set(SkScalar x, SkScalar y, SkScalar z) { in set() 33 SkScalar normalize(SkUnit3D*) const; 38 SkScalar fMat[3][4]; 42 void setRow(int row, SkScalar a, SkScalar b, SkScalar c, SkScalar d = 0) { 50 void setRotateX(SkScalar deg); 51 void setRotateY(SkScalar deg); [all …]
|
/external/skia/src/effects/ |
D | SkColorMatrix.cpp | 19 static bool component_needs_clamping(const SkScalar row[5]) { in component_needs_clamping() 20 SkScalar maxValue = row[4] / 255; in component_needs_clamping() 21 SkScalar minValue = row[4] / 255; in component_needs_clamping() 31 bool SkColorMatrix::NeedsClamping(const SkScalar matrix[20]) { in NeedsClamping() 38 void SkColorMatrix::SetConcat(SkScalar result[20], in SetConcat() 39 const SkScalar outer[20], const SkScalar inner[20]) { in SetConcat() 40 SkScalar tmp[20]; in SetConcat() 41 SkScalar* target; in SetConcat() 65 memcpy(result, target, 20 * sizeof(SkScalar)); in SetConcat() 76 void SkColorMatrix::setScale(SkScalar rScale, SkScalar gScale, SkScalar bScale, in setScale() [all …]
|
/external/skia/include/effects/ |
D | SkColorMatrix.h | 18 SkScalar fMat[kCount]; 33 void setScale(SkScalar rScale, SkScalar gScale, SkScalar bScale, 34 SkScalar aScale = SK_Scalar1); 35 void preScale(SkScalar rScale, SkScalar gScale, SkScalar bScale, 36 SkScalar aScale = SK_Scalar1); 37 void postScale(SkScalar rScale, SkScalar gScale, SkScalar bScale, 38 SkScalar aScale = SK_Scalar1); 39 void postTranslate(SkScalar rTrans, SkScalar gTrans, SkScalar bTrans, 40 SkScalar aTrans = 0); 47 void setRotate(Axis, SkScalar degrees); [all …]
|
D | SkLightingImageFilter.h | 21 SkColor lightColor, SkScalar surfaceScale, SkScalar kd, 24 SkColor lightColor, SkScalar surfaceScale, SkScalar kd, 27 const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle, 28 SkColor lightColor, SkScalar surfaceScale, SkScalar kd, 31 SkColor lightColor, SkScalar surfaceScale, SkScalar ks, 32 SkScalar shininess, SkImageFilter* input = NULL, const CropRect* cropRect = NULL); 34 SkColor lightColor, SkScalar surfaceScale, SkScalar ks, 35 SkScalar shininess, SkImageFilter* input = NULL, const CropRect* cropRect = NULL); 37 const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle, 38 SkColor lightColor, SkScalar surfaceScale, SkScalar ks, [all …]
|
/external/skia/src/core/ |
D | SkGeometry.cpp | 26 static int is_not_monotonic(SkScalar a, SkScalar b, SkScalar c) { in is_not_monotonic() 27 SkScalar ab = a - b; in is_not_monotonic() 28 SkScalar bc = b - c; in is_not_monotonic() 37 static bool is_unit_interval(SkScalar x) { in is_unit_interval() 41 static int valid_unit_divide(SkScalar numer, SkScalar denom, SkScalar* ratio) { in valid_unit_divide() 53 SkScalar r = numer / denom; in valid_unit_divide() 71 int SkFindUnitQuadRoots(SkScalar A, SkScalar B, SkScalar C, SkScalar roots[2]) { in SkFindUnitQuadRoots() 78 SkScalar* r = roots; in SkFindUnitQuadRoots() 80 SkScalar R = B*B - 4*A*C; in SkFindUnitQuadRoots() 92 SkScalar Q = (B < 0) ? -(B-R)/2 : -(B+R)/2; in SkFindUnitQuadRoots() [all …]
|
D | SkGeometry.h | 31 int SkFindUnitQuadRoots(SkScalar A, SkScalar B, SkScalar C, SkScalar roots[2]); 35 SkPoint SkEvalQuadAt(const SkPoint src[3], SkScalar t); 36 SkPoint SkEvalQuadTangentAt(const SkPoint src[3], SkScalar t); 41 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent = nullptr); 47 void SkChopQuadAt(const SkPoint src[3], SkPoint dst[5], SkScalar t); 62 int SkFindQuadExtrema(SkScalar a, SkScalar b, SkScalar c, SkScalar tValues[1]); 77 SkScalar SkFindQuadMaxCurvature(const SkPoint src[3]); 99 void SkEvalCubicAt(const SkPoint src[4], SkScalar t, SkPoint* locOrNull, 106 void SkChopCubicAt(const SkPoint src[4], SkPoint dst[7], SkScalar t); 112 void SkChopCubicAt(const SkPoint src[4], SkPoint dst[], const SkScalar t[], [all …]
|
D | SkMaskGamma.cpp | 15 SkScalar toLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luminance) const override { in toLuma() 19 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const override { in fromLuma() 26 SkScalar toLuma(SkScalar gamma, SkScalar luminance) const override { in toLuma() 29 SkScalar fromLuma(SkScalar gamma, SkScalar luma) const override { in fromLuma() 35 SkScalar toLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luminance) const override { in toLuma() 45 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const override { in fromLuma() 57 /*static*/ const SkColorSpaceLuminance& SkColorSpaceLuminance::Fetch(SkScalar gamma) { in Fetch() 75 void SkTMaskGamma_build_correcting_lut(uint8_t table[256], U8CPU srcI, SkScalar contrast, in SkTMaskGamma_build_correcting_lut() 76 const SkColorSpaceLuminance& srcConvert, SkScalar srcGamma, in SkTMaskGamma_build_correcting_lut() 77 const SkColorSpaceLuminance& dstConvert, SkScalar dstGamma) { in SkTMaskGamma_build_correcting_lut()
|
D | SkCubicClipper.cpp | 23 bool SkCubicClipper::ChopMonoAtY(const SkPoint pts[4], SkScalar y, SkScalar* t) { in ChopMonoAtY() 24 SkScalar ycrv[4]; in ChopMonoAtY() 34 SkScalar t1 = ycrv[0] / (ycrv[0] - ycrv[3]); in ChopMonoAtY() 37 const SkScalar tol = SK_Scalar1 / 16384; // This leaves 2 fixed noise bits. in ChopMonoAtY() 38 SkScalar t0; in ChopMonoAtY() 44 SkScalar y01 = SkScalarInterp(ycrv[0], ycrv[1], t0); in ChopMonoAtY() 45 SkScalar y12 = SkScalarInterp(ycrv[1], ycrv[2], t0); in ChopMonoAtY() 46 SkScalar y23 = SkScalarInterp(ycrv[2], ycrv[3], t0); in ChopMonoAtY() 47 SkScalar y012 = SkScalarInterp(y01, y12, t0); in ChopMonoAtY() 48 SkScalar y123 = SkScalarInterp(y12, y23, t0); in ChopMonoAtY() [all …]
|
D | SkMatrix.cpp | 17 static void normalize_perspective(SkScalar mat[9]) { in normalize_perspective() 28 SkScalar p2 = mat[SkMatrix::kMPersp2]; in normalize_perspective() 72 void SkMatrix::set9(const SkScalar buffer[]) { in set9() 73 memcpy(fMat, buffer, 9 * sizeof(SkScalar)); in set9() 78 void SkMatrix::setAffine(const SkScalar buffer[]) { in setAffine() 181 const SkScalar* SK_RESTRICT ma = a.fMat; in operator ==() 182 const SkScalar* SK_RESTRICT mb = b.fMat; in operator ==() 192 static inline bool is_degenerate_2x2(SkScalar scaleX, SkScalar skewX, in is_degenerate_2x2() 193 SkScalar skewY, SkScalar scaleY) { in is_degenerate_2x2() 194 SkScalar perp_dot = scaleX*scaleY - skewX*skewY; in is_degenerate_2x2() [all …]
|
D | SkPath.cpp | 71 SkAutoPathBoundsUpdate(SkPath* path, SkScalar left, SkScalar top, in SkAutoPathBoundsUpdate() 72 SkScalar right, SkScalar bottom) { in SkAutoPathBoundsUpdate() 213 bool SkPath::interpolate(const SkPath& ending, SkScalar weight, SkPath* out) const { in interpolate() 242 SkScalar yL = SkScalarMul(v.fY, rect.fLeft - edgeBegin->fX); in check_edge_against_rect() 243 SkScalar xT = SkScalarMul(v.fX, rect.fTop - edgeBegin->fY); in check_edge_against_rect() 244 SkScalar yR = SkScalarMul(v.fY, rect.fRight - edgeBegin->fX); in check_edge_against_rect() 245 SkScalar xB = SkScalarMul(v.fX, rect.fBottom - edgeBegin->fY); in check_edge_against_rect() 424 static int rect_make_dir(SkScalar dx, SkScalar dy) { in rect_make_dir() 451 SkScalar left = last.fX; in isRectContour() 452 SkScalar top = last.fY; in isRectContour() [all …]
|
/external/skia/src/utils/ |
D | SkCamera.cpp | 10 static SkScalar SkScalarDotDiv(int count, const SkScalar a[], int step_a, in SkScalarDotDiv() 11 const SkScalar b[], int step_b, in SkScalarDotDiv() 12 SkScalar denom) { in SkScalarDotDiv() 13 SkScalar prod = 0; in SkScalarDotDiv() 22 static SkScalar SkScalarDot(int count, const SkScalar a[], int step_a, in SkScalarDot() 23 const SkScalar b[], int step_b) { in SkScalarDot() 24 SkScalar prod = 0; in SkScalarDot() 35 SkScalar SkPoint3D::normalize(SkUnit3D* unit) const { in normalize() 36 SkScalar mag = SkScalarSqrt(fX*fX + fY*fY + fZ*fZ); in normalize() 38 SkScalar scale = SkScalarInvert(mag); in normalize() [all …]
|
/external/skia/src/pathops/ |
D | SkPathOpsCurve.h | 20 SkScalar fWeight; 67 SkDPoint conicTop(const SkPoint curve[3], SkScalar curveWeight, 69 SkDPoint cubicTop(const SkPoint curve[4], SkScalar , double s, double e, double* topT); 71 SkDPoint lineTop(const SkPoint[2], SkScalar , double , double , double* topT); 72 SkDPoint quadTop(const SkPoint curve[3], SkScalar , double s, double e, double* topT); 74 void setConicBounds(const SkPoint curve[3], SkScalar curveWeight, 76 void setCubicBounds(const SkPoint curve[4], SkScalar , 78 void setQuadBounds(const SkPoint curve[3], SkScalar , 83 extern SkDPoint (SkDCurve::* const Top[])(const SkPoint curve[], SkScalar cWeight, 86 static SkDPoint dline_xy_at_t(const SkPoint a[2], SkScalar , double t) { in dline_xy_at_t() argument [all …]
|
/external/skia/src/gpu/ |
D | GrPathUtils.cpp | 13 SkScalar GrPathUtils::scaleToleranceToSrc(SkScalar devTol, in scaleToleranceToSrc() 18 SkScalar stretch = viewM.getMaxScale(); in scaleToleranceToSrc() 19 SkScalar srcTol = devTol; in scaleToleranceToSrc() 36 static const SkScalar gMinCurveTol = 0.0001f; 39 SkScalar tol) { in quadraticPointCount() 45 SkScalar d = points[1].distanceToLineSegmentBetween(points[0], points[2]); in quadraticPointCount() 53 SkScalar divSqrt = SkScalarSqrt(d / tol); in quadraticPointCount() 54 if (((SkScalar)SK_MaxS32) <= divSqrt) { in quadraticPointCount() 73 SkScalar tolSqd, in generateQuadraticPoints() 96 SkScalar tol) { in cubicPointCount() [all …]
|
/external/skia/experimental/SkPerlinNoiseShader2/ |
D | SkPerlinNoiseShader2.h | 64 static SkShader* CreateFractalNoise(SkScalar baseFrequencyX, SkScalar baseFrequencyY, 65 int numOctaves, SkScalar seed, 67 static SkShader* CreateTurbulence(SkScalar baseFrequencyX, SkScalar baseFrequencyY, 68 int numOctaves, SkScalar seed, 74 static SkShader* CreateImprovedNoise(SkScalar baseFrequencyX, SkScalar baseFrequencyY, 75 int numOctaves, SkScalar z); 80 static SkShader* CreateTubulence(SkScalar baseFrequencyX, SkScalar baseFrequencyY, 81 int numOctaves, SkScalar seed, 98 SkScalar calculateTurbulenceValueForPoint( 101 SkScalar calculateImprovedNoiseValueForPoint(int channel, const SkPoint& point) const; [all …]
|
/external/skia/gm/ |
D | inversepaths.cpp | 12 static SkPath generate_square(SkScalar cx, SkScalar cy, SkScalar w) { in generate_square() 19 static SkPath generate_rect_line(SkScalar cx, SkScalar cy, SkScalar l) { in generate_rect_line() 26 static SkPath generate_circle(SkScalar cx, SkScalar cy, SkScalar d) { in generate_circle() 32 static SkPath generate_line(SkScalar cx, SkScalar cy, SkScalar l) { in generate_line() 45 SkScalar pathSizes[] = { 50 SkScalar strokeWidths[] = { 54 SkPath ((*paths[])(SkScalar, SkScalar, SkScalar)) = { 61 const SkScalar slideWidth = 90, slideHeight = 90; 62 const SkScalar slideBoundary = 5; 67 SkScalar cx = slideWidth / 2 + slideBoundary; [all …]
|
/external/skia/experimental/ |
D | SkSetPoly3To3_A.cpp | 15 static SkScalar SkDScalar_toScalar(SkDScalar value) { in SkDScalar_toScalar() 18 static SkScalar divide(SkDScalar numer, SkDScalar denom) { in divide() 22 static SkDScalar SkDScalar_setMul(SkScalar a, SkScalar b) { in SkDScalar_setMul() 26 static void computeOuterProduct(SkScalar op[4], in computeOuterProduct() 31 SkScalar x0 = pts0[i].fX - ave0.fX; in computeOuterProduct() 32 SkScalar y0 = pts0[i].fY - ave0.fY; in computeOuterProduct() 33 SkScalar x1 = pts1[i].fX - ave1.fX; in computeOuterProduct() 34 SkScalar y1 = pts1[i].fY - ave1.fY; in computeOuterProduct() 42 static SkDScalar ddot(SkScalar ax, SkScalar ay, SkScalar bx, SkScalar by) { in ddot() 46 static SkScalar dot(SkScalar ax, SkScalar ay, SkScalar bx, SkScalar by) { in dot() [all …]
|
/external/skia/src/gpu/text/ |
D | GrAtlasTextBlob.h | 134 void setMinAndMaxScale(SkScalar scaledMax, SkScalar scaledMin) { in setMinAndMaxScale() 163 SkScalar x, SkScalar y, SkScalar scale, bool applyVM); 177 const SkMatrix& viewMatrix, SkScalar x, SkScalar y); 191 SkScalar x, SkScalar y); 203 SkScalar x, SkScalar y); 206 const SkMatrix& viewMatrix, SkScalar x, SkScalar y) { in computeSubRunBounds() 249 void initReusableBlob(GrColor color, const SkMatrix& viewMatrix, SkScalar x, SkScalar y) { in initReusableBlob() 254 void initThrowawayBlob(const SkMatrix& viewMatrix, SkScalar x, SkScalar y) { in initThrowawayBlob() 262 const SkMatrix& viewMatrix, SkScalar x, SkScalar y, 277 const SkMatrix& viewMatrix, SkScalar x, SkScalar y, GrColor color, [all …]
|