Home
last modified time | relevance | path

Searched refs:SkScalar (Results 1 – 25 of 1871) sorted by relevance

12345678910>>...75

/external/skia/include/core/
DSkMatrix.h45 static SkMatrix SK_WARN_UNUSED_RESULT MakeScale(SkScalar sx, SkScalar sy) { in MakeScale()
60 static SkMatrix SK_WARN_UNUSED_RESULT MakeScale(SkScalar scale) { in MakeScale()
76 static SkMatrix SK_WARN_UNUSED_RESULT MakeTrans(SkScalar dx, SkScalar dy) { in MakeTrans()
99 static SkMatrix SK_WARN_UNUSED_RESULT MakeAll(SkScalar scaleX, SkScalar skewX, SkScalar transX, in MakeAll()
100 SkScalar skewY, SkScalar scaleY, SkScalar transY, in MakeAll()
101 SkScalar pers0, SkScalar pers1, SkScalar pers2) { in MakeAll()
251 bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
264 bool preservesRightAngles(SkScalar tol = SK_ScalarNearlyZero) const;
302 SkScalar operator[](int index) const {
314 SkScalar get(int index) const { in get()
[all …]
DSkScalar.h16 typedef float SkScalar; typedef
56 #define SkIntToScalar(x) static_cast<SkScalar>(x)
61 #define SkFloatToScalar(x) static_cast<SkScalar>(x)
63 #define SkDoubleToScalar(x) static_cast<SkScalar>(x)
67 static inline bool SkScalarIsNaN(SkScalar x) { return x != x; } in SkScalarIsNaN()
71 static inline bool SkScalarIsFinite(SkScalar x) { in SkScalarIsFinite()
76 SkScalar prod = x * 0; in SkScalarIsFinite()
81 static inline bool SkScalarsAreFinite(SkScalar a, SkScalar b) { in SkScalarsAreFinite()
82 SkScalar prod = 0; in SkScalarsAreFinite()
89 static inline bool SkScalarsAreFinite(const SkScalar array[], int count) { in SkScalarsAreFinite()
[all …]
DSkPath.h145 bool interpolate(const SkPath& ending, SkScalar weight, SkPath* out) const;
546 void moveTo(SkScalar x, SkScalar y);
564 void rMoveTo(SkScalar dx, SkScalar dy);
575 void lineTo(SkScalar x, SkScalar y);
600 void rLineTo(SkScalar dx, SkScalar dy);
615 void quadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2);
648 void rQuadTo(SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2);
671 void conicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2,
672 SkScalar w);
693 void conicTo(const SkPoint& p1, const SkPoint& p2, SkScalar w) { in conicTo()
[all …]
DSkRSXform.h22 static SkRSXform Make(SkScalar scos, SkScalar ssin, SkScalar tx, SkScalar ty) { in Make()
33 static SkRSXform MakeFromRadians(SkScalar scale, SkScalar radians, SkScalar tx, SkScalar ty, in MakeFromRadians()
34 SkScalar ax, SkScalar ay) { in MakeFromRadians()
35 const SkScalar s = SkScalarSin(radians) * scale; in MakeFromRadians()
36 const SkScalar c = SkScalarCos(radians) * scale; in MakeFromRadians()
40 SkScalar fSCos;
41 SkScalar fSSin;
42 SkScalar fTx;
43 SkScalar fTy;
54 void set(SkScalar scos, SkScalar ssin, SkScalar tx, SkScalar ty) { in set()
[all …]
DSkPaint.h611 SkScalar getStrokeWidth() const { return fWidth; } in getStrokeWidth()
619 void setStrokeWidth(SkScalar width);
625 SkScalar getStrokeMiter() const { return fMiterLimit; } in getStrokeMiter()
633 void setStrokeMiter(SkScalar miter);
733 SkScalar resScale = 1) const;
998 SkScalar getTextSize() const { return fTextSize; } in getTextSize()
1005 void setTextSize(SkScalar textSize);
1012 SkScalar getTextScaleX() const { return fTextScaleX; } in getTextScaleX()
1019 void setTextScaleX(SkScalar scaleX);
1026 SkScalar getTextSkewX() const { return fTextSkewX; } in getTextSkewX()
[all …]
/external/skqp/include/core/
DSkMatrix.h45 static SkMatrix SK_WARN_UNUSED_RESULT MakeScale(SkScalar sx, SkScalar sy) { in MakeScale()
60 static SkMatrix SK_WARN_UNUSED_RESULT MakeScale(SkScalar scale) { in MakeScale()
76 static SkMatrix SK_WARN_UNUSED_RESULT MakeTrans(SkScalar dx, SkScalar dy) { in MakeTrans()
99 static SkMatrix SK_WARN_UNUSED_RESULT MakeAll(SkScalar scaleX, SkScalar skewX, SkScalar transX, in MakeAll()
100 SkScalar skewY, SkScalar scaleY, SkScalar transY, in MakeAll()
101 SkScalar pers0, SkScalar pers1, SkScalar pers2) { in MakeAll()
251 bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
264 bool preservesRightAngles(SkScalar tol = SK_ScalarNearlyZero) const;
302 SkScalar operator[](int index) const {
314 SkScalar get(int index) const { in get()
[all …]
DSkScalar.h16 typedef float SkScalar; typedef
56 #define SkIntToScalar(x) static_cast<SkScalar>(x)
61 #define SkFloatToScalar(x) static_cast<SkScalar>(x)
63 #define SkDoubleToScalar(x) static_cast<SkScalar>(x)
67 static inline bool SkScalarIsNaN(SkScalar x) { return x != x; } in SkScalarIsNaN()
71 static inline bool SkScalarIsFinite(SkScalar x) { in SkScalarIsFinite()
76 SkScalar prod = x * 0; in SkScalarIsFinite()
81 static inline bool SkScalarsAreFinite(SkScalar a, SkScalar b) { in SkScalarsAreFinite()
82 SkScalar prod = 0; in SkScalarsAreFinite()
89 static inline bool SkScalarsAreFinite(const SkScalar array[], int count) { in SkScalarsAreFinite()
[all …]
DSkPath.h145 bool interpolate(const SkPath& ending, SkScalar weight, SkPath* out) const;
588 void moveTo(SkScalar x, SkScalar y);
606 void rMoveTo(SkScalar dx, SkScalar dy);
617 void lineTo(SkScalar x, SkScalar y);
642 void rLineTo(SkScalar dx, SkScalar dy);
657 void quadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2);
690 void rQuadTo(SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2);
713 void conicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2,
714 SkScalar w);
735 void conicTo(const SkPoint& p1, const SkPoint& p2, SkScalar w) { in conicTo()
[all …]
DSkRSXform.h22 static SkRSXform Make(SkScalar scos, SkScalar ssin, SkScalar tx, SkScalar ty) { in Make()
33 static SkRSXform MakeFromRadians(SkScalar scale, SkScalar radians, SkScalar tx, SkScalar ty, in MakeFromRadians()
34 SkScalar ax, SkScalar ay) { in MakeFromRadians()
35 const SkScalar s = SkScalarSin(radians) * scale; in MakeFromRadians()
36 const SkScalar c = SkScalarCos(radians) * scale; in MakeFromRadians()
40 SkScalar fSCos;
41 SkScalar fSSin;
42 SkScalar fTx;
43 SkScalar fTy;
54 void set(SkScalar scos, SkScalar ssin, SkScalar tx, SkScalar ty) { in set()
[all …]
DSkPaint.h612 SkScalar getStrokeWidth() const { return fWidth; } in getStrokeWidth()
620 void setStrokeWidth(SkScalar width);
626 SkScalar getStrokeMiter() const { return fMiterLimit; } in getStrokeMiter()
634 void setStrokeMiter(SkScalar miter);
730 SkScalar resScale = 1) const;
995 SkScalar getTextSize() const { return fTextSize; } in getTextSize()
1002 void setTextSize(SkScalar textSize);
1009 SkScalar getTextScaleX() const { return fTextScaleX; } in getTextScaleX()
1016 void setTextScaleX(SkScalar scaleX);
1023 SkScalar getTextSkewX() const { return fTextSkewX; } in getTextSkewX()
[all …]
/external/skqp/include/utils/
DSkCamera.h18 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/include/utils/
DSkCamera.h18 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/
DSkColorMatrix.cpp19 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/skqp/src/effects/
DSkColorMatrix.cpp19 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/skqp/include/effects/
DSkColorMatrix.h18 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 …]
DSkGradientShader.h42 const SkColor colors[], const SkScalar pos[], int count,
46 const SkColor colors[], const SkScalar pos[], int count, in MakeLinear()
65 const SkScalar pos[], int count, SkShader::TileMode mode,
69 const SkScalar pos[], int count, SkShader::TileMode mode) { in MakeLinear()
86 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
87 const SkColor colors[], const SkScalar pos[], int count,
90 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, in MakeRadial()
91 const SkColor colors[], const SkScalar pos[], int count, in MakeRadial()
109 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
111 const SkScalar pos[], int count, SkShader::TileMode mode,
[all …]
/external/skia/include/effects/
DSkColorMatrix.h18 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 …]
DSkGradientShader.h42 const SkColor colors[], const SkScalar pos[], int count,
46 const SkColor colors[], const SkScalar pos[], int count, in MakeLinear()
65 const SkScalar pos[], int count, SkShader::TileMode mode,
69 const SkScalar pos[], int count, SkShader::TileMode mode) { in MakeLinear()
86 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
87 const SkColor colors[], const SkScalar pos[], int count,
90 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, in MakeRadial()
91 const SkColor colors[], const SkScalar pos[], int count, in MakeRadial()
109 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
111 const SkScalar pos[], int count, SkShader::TileMode mode,
[all …]
/external/skia/src/utils/
DSkCamera.cpp10 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/skqp/src/utils/
DSkCamera.cpp10 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/skqp/src/core/
DSkGeometry.h31 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 …]
DSkGeometry.cpp22 static int is_not_monotonic(SkScalar a, SkScalar b, SkScalar c) { in is_not_monotonic()
23 SkScalar ab = a - b; in is_not_monotonic()
24 SkScalar bc = b - c; in is_not_monotonic()
33 static bool is_unit_interval(SkScalar x) { in is_unit_interval()
37 static int valid_unit_divide(SkScalar numer, SkScalar denom, SkScalar* ratio) { in valid_unit_divide()
49 SkScalar r = numer / denom; in valid_unit_divide()
67 int SkFindUnitQuadRoots(SkScalar A, SkScalar B, SkScalar C, SkScalar roots[2]) { in SkFindUnitQuadRoots()
74 SkScalar* r = roots; in SkFindUnitQuadRoots()
76 SkScalar R = B*B - 4*A*C; in SkFindUnitQuadRoots()
88 SkScalar Q = (B < 0) ? -(B-R)/2 : -(B+R)/2; in SkFindUnitQuadRoots()
[all …]
/external/skia/src/core/
DSkGeometry.h31 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 …]
DSkGeometry.cpp22 static int is_not_monotonic(SkScalar a, SkScalar b, SkScalar c) { in is_not_monotonic()
23 SkScalar ab = a - b; in is_not_monotonic()
24 SkScalar bc = b - c; in is_not_monotonic()
33 static bool is_unit_interval(SkScalar x) { in is_unit_interval()
37 static int valid_unit_divide(SkScalar numer, SkScalar denom, SkScalar* ratio) { in valid_unit_divide()
49 SkScalar r = numer / denom; in valid_unit_divide()
67 int SkFindUnitQuadRoots(SkScalar A, SkScalar B, SkScalar C, SkScalar roots[2]) { in SkFindUnitQuadRoots()
74 SkScalar* r = roots; in SkFindUnitQuadRoots()
76 SkScalar R = B*B - 4*A*C; in SkFindUnitQuadRoots()
88 SkScalar Q = (B < 0) ? -(B-R)/2 : -(B+R)/2; in SkFindUnitQuadRoots()
[all …]
/external/skia/src/gpu/text/
DGrAtlasTextContext.h35 SkScalar fMinDistanceFieldFontSize = -1.f;
40 SkScalar fMaxDistanceFieldFontSize = -1.f;
49 size_t byteLength, SkScalar x, SkScalar y, const SkIRect& regionClipBounds);
52 size_t byteLength, const SkScalar pos[], int scalarsPerPosition,
56 SkScalar x, SkScalar y, SkDrawFilter*, const SkIRect& clipBounds);
66 SkScalar textRatio) in FallbackTextHelper()
85 SkScalar fTextSize;
86 SkScalar fMaxTextSize;
87 SkScalar fTextRatio;
88 SkScalar fScaledFallbackTextSize;
[all …]

12345678910>>...75