Home
last modified time | relevance | path

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

12345678910>>...80

/external/skqp/include/core/
DSkMatrix.h56 static SkMatrix SK_WARN_UNUSED_RESULT MakeScale(SkScalar sx, SkScalar sy) { in MakeScale()
71 static SkMatrix SK_WARN_UNUSED_RESULT MakeScale(SkScalar scale) { in MakeScale()
87 static SkMatrix SK_WARN_UNUSED_RESULT MakeTrans(SkScalar dx, SkScalar dy) { in MakeTrans()
110 static SkMatrix SK_WARN_UNUSED_RESULT MakeAll(SkScalar scaleX, SkScalar skewX, SkScalar transX, in MakeAll()
111 SkScalar skewY, SkScalar scaleY, SkScalar transY, in MakeAll()
112 SkScalar pers0, SkScalar pers1, SkScalar pers2) { in MakeAll()
262 bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
275 bool preservesRightAngles(SkScalar tol = SK_ScalarNearlyZero) const;
307 SkScalar operator[](int index) const {
319 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)
67 static inline bool SkScalarIsNaN(SkScalar x) { return x != x; } in SkScalarIsNaN()
71 static inline bool SkScalarIsFinite(SkScalar x) { return sk_float_isfinite(x); } in SkScalarIsFinite()
73 static inline bool SkScalarsAreFinite(SkScalar a, SkScalar b) { in SkScalarsAreFinite()
77 static inline bool SkScalarsAreFinite(const SkScalar array[], int count) { in SkScalarsAreFinite()
78 SkScalar prod = 0; in SkScalarsAreFinite()
100 static inline int SkDScalarRoundToInt(SkScalar x) { in SkDScalarRoundToInt()
107 static inline SkScalar SkScalarFraction(SkScalar x) { in SkScalarFraction()
[all …]
DSkPath.h161 bool interpolate(const SkPath& ending, SkScalar weight, SkPath* out) const;
560 SkPath& moveTo(SkScalar x, SkScalar y);
580 SkPath& rMoveTo(SkScalar dx, SkScalar dy);
592 SkPath& lineTo(SkScalar x, SkScalar y);
619 SkPath& rLineTo(SkScalar dx, SkScalar dy);
635 SkPath& quadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2);
670 SkPath& rQuadTo(SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2);
694 SkPath& conicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2,
695 SkScalar w);
717 SkPath& 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 …]
DSkFontMetrics.h28 SkScalar fTop; //!< extent above baseline
29 SkScalar fAscent; //!< distance to reserve above baseline
30 SkScalar fDescent; //!< distance to reserve below baseline
31 SkScalar fBottom; //!< extent below baseline
32 SkScalar fLeading; //!< distance to add between lines
33 SkScalar fAvgCharWidth; //!< average character width
34 SkScalar fMaxCharWidth; //!< maximum character width
35 SkScalar fXMin; //!< minimum x
36 SkScalar fXMax; //!< maximum x
37 SkScalar fXHeight; //!< height of lower-case 'x'
[all …]
DSkRect.h684 SkScalar fLeft; //!< smaller x-axis bounds
685 SkScalar fTop; //!< smaller y-axis bounds
686 SkScalar fRight; //!< larger x-axis bounds
687 SkScalar fBottom; //!< larger y-axis bounds
710 static constexpr SkRect SK_WARN_UNUSED_RESULT MakeWH(SkScalar w, SkScalar h) { in MakeWH()
749 static constexpr SkRect SK_WARN_UNUSED_RESULT MakeLTRB(SkScalar l, SkScalar t, SkScalar r, in MakeLTRB()
750 SkScalar b) { in MakeLTRB()
763 static constexpr SkRect SK_WARN_UNUSED_RESULT MakeXYWH(SkScalar x, SkScalar y, SkScalar w, in MakeXYWH()
764 SkScalar h) { in MakeXYWH()
839 SkScalar x() const { return fLeft; } in x()
[all …]
/external/skia/include/core/
DSkMatrix.h56 static SkMatrix SK_WARN_UNUSED_RESULT MakeScale(SkScalar sx, SkScalar sy) { in MakeScale()
71 static SkMatrix SK_WARN_UNUSED_RESULT MakeScale(SkScalar scale) { in MakeScale()
87 static SkMatrix SK_WARN_UNUSED_RESULT MakeTrans(SkScalar dx, SkScalar dy) { in MakeTrans()
110 static SkMatrix SK_WARN_UNUSED_RESULT MakeAll(SkScalar scaleX, SkScalar skewX, SkScalar transX, in MakeAll()
111 SkScalar skewY, SkScalar scaleY, SkScalar transY, in MakeAll()
112 SkScalar pers0, SkScalar pers1, SkScalar pers2) { in MakeAll()
262 bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
275 bool preservesRightAngles(SkScalar tol = SK_ScalarNearlyZero) const;
307 SkScalar operator[](int index) const {
319 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)
67 static inline bool SkScalarIsNaN(SkScalar x) { return x != x; } in SkScalarIsNaN()
71 static inline bool SkScalarIsFinite(SkScalar x) { return sk_float_isfinite(x); } in SkScalarIsFinite()
73 static inline bool SkScalarsAreFinite(SkScalar a, SkScalar b) { in SkScalarsAreFinite()
77 static inline bool SkScalarsAreFinite(const SkScalar array[], int count) { in SkScalarsAreFinite()
78 SkScalar prod = 0; in SkScalarsAreFinite()
100 static inline int SkDScalarRoundToInt(SkScalar x) { in SkDScalarRoundToInt()
107 static inline SkScalar SkScalarFraction(SkScalar x) { in SkScalarFraction()
[all …]
DSkPath.h161 bool interpolate(const SkPath& ending, SkScalar weight, SkPath* out) const;
560 SkPath& moveTo(SkScalar x, SkScalar y);
580 SkPath& rMoveTo(SkScalar dx, SkScalar dy);
592 SkPath& lineTo(SkScalar x, SkScalar y);
619 SkPath& rLineTo(SkScalar dx, SkScalar dy);
635 SkPath& quadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2);
670 SkPath& rQuadTo(SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2);
694 SkPath& conicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2,
695 SkScalar w);
717 SkPath& 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 …]
DSkFontMetrics.h28 SkScalar fTop; //!< extent above baseline
29 SkScalar fAscent; //!< distance to reserve above baseline
30 SkScalar fDescent; //!< distance to reserve below baseline
31 SkScalar fBottom; //!< extent below baseline
32 SkScalar fLeading; //!< distance to add between lines
33 SkScalar fAvgCharWidth; //!< average character width
34 SkScalar fMaxCharWidth; //!< maximum character width
35 SkScalar fXMin; //!< minimum x
36 SkScalar fXMax; //!< maximum x
37 SkScalar fXHeight; //!< height of lower-case 'x'
[all …]
/external/skqp/include/utils/
DSkCamera.h19 SkScalar fX, fY, fZ;
21 void set(SkScalar x, SkScalar y, SkScalar z) { in set()
24 static SkScalar Dot(const SkUnit3D&, const SkUnit3D&);
29 SkScalar fX, fY, fZ;
31 void set(SkScalar x, SkScalar y, SkScalar z) { in set()
34 SkScalar normalize(SkUnit3D*) const;
39 SkScalar fMat[3][4];
43 void setRow(int row, SkScalar a, SkScalar b, SkScalar c, SkScalar d = 0) {
51 void setRotateX(SkScalar deg);
52 void setRotateY(SkScalar deg);
[all …]
/external/skia/include/utils/
DSkCamera.h19 SkScalar fX, fY, fZ;
21 void set(SkScalar x, SkScalar y, SkScalar z) { in set()
24 static SkScalar Dot(const SkUnit3D&, const SkUnit3D&);
29 SkScalar fX, fY, fZ;
31 void set(SkScalar x, SkScalar y, SkScalar z) { in set()
34 SkScalar normalize(SkUnit3D*) const;
39 SkScalar fMat[3][4];
43 void setRow(int row, SkScalar a, SkScalar b, SkScalar c, SkScalar d = 0) {
51 void setRotateX(SkScalar deg);
52 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/skia/include/effects/
DSkGradientShader.h71 const SkColor colors[], const SkScalar pos[], int count,
75 const SkColor colors[], const SkScalar pos[], int count, in MakeLinear()
94 const SkScalar pos[], int count, SkShader::TileMode mode,
98 const SkScalar pos[], int count, SkShader::TileMode mode) { in MakeLinear()
115 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
116 const SkColor colors[], const SkScalar pos[], int count,
119 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, in MakeRadial()
120 const SkColor colors[], const SkScalar pos[], int count, in MakeRadial()
138 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
140 const SkScalar pos[], int count, SkShader::TileMode mode,
[all …]
/external/skqp/include/effects/
DSkGradientShader.h71 const SkColor colors[], const SkScalar pos[], int count,
75 const SkColor colors[], const SkScalar pos[], int count, in MakeLinear()
94 const SkScalar pos[], int count, SkShader::TileMode mode,
98 const SkScalar pos[], int count, SkShader::TileMode mode) { in MakeLinear()
115 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
116 const SkColor colors[], const SkScalar pos[], int count,
119 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, in MakeRadial()
120 const SkColor colors[], const SkScalar pos[], int count, in MakeRadial()
138 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
140 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/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.cpp24 static int is_not_monotonic(SkScalar a, SkScalar b, SkScalar c) { in is_not_monotonic()
25 SkScalar ab = a - b; in is_not_monotonic()
26 SkScalar bc = b - c; in is_not_monotonic()
35 static int valid_unit_divide(SkScalar numer, SkScalar denom, SkScalar* ratio) { in valid_unit_divide()
47 SkScalar r = numer / denom; in valid_unit_divide()
74 int SkFindUnitQuadRoots(SkScalar A, SkScalar B, SkScalar C, SkScalar roots[2]) { in SkFindUnitQuadRoots()
81 SkScalar* r = roots; in SkFindUnitQuadRoots()
89 SkScalar R = SkDoubleToScalar(dr); in SkFindUnitQuadRoots()
94 SkScalar Q = (B < 0) ? -(B-R)/2 : -(B+R)/2; in SkFindUnitQuadRoots()
111 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent) { in SkEvalQuadAt()
[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.cpp24 static int is_not_monotonic(SkScalar a, SkScalar b, SkScalar c) { in is_not_monotonic()
25 SkScalar ab = a - b; in is_not_monotonic()
26 SkScalar bc = b - c; in is_not_monotonic()
35 static int valid_unit_divide(SkScalar numer, SkScalar denom, SkScalar* ratio) { in valid_unit_divide()
47 SkScalar r = numer / denom; in valid_unit_divide()
74 int SkFindUnitQuadRoots(SkScalar A, SkScalar B, SkScalar C, SkScalar roots[2]) { in SkFindUnitQuadRoots()
81 SkScalar* r = roots; in SkFindUnitQuadRoots()
89 SkScalar R = SkDoubleToScalar(dr); in SkFindUnitQuadRoots()
94 SkScalar Q = (B < 0) ? -(B-R)/2 : -(B+R)/2; in SkFindUnitQuadRoots()
111 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent) { in SkEvalQuadAt()
[all …]
/external/skqp/modules/pathkit/
Dpathkit_wasm_bindings.cpp186 void ApplyArcTo(SkPath& p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in ApplyArcTo()
187 SkScalar radius) { in ApplyArcTo()
195 void ApplyConicTo(SkPath& p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in ApplyConicTo()
196 SkScalar w) { in ApplyConicTo()
200 void ApplyCubicTo(SkPath& p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in ApplyCubicTo()
201 SkScalar x3, SkScalar y3) { in ApplyCubicTo()
205 void ApplyLineTo(SkPath& p, SkScalar x, SkScalar y) { in ApplyLineTo()
209 void ApplyMoveTo(SkPath& p, SkScalar x, SkScalar y) { in ApplyMoveTo()
213 void ApplyQuadTo(SkPath& p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) { in ApplyQuadTo()
320 void ApplyAddRect(SkPath& path, SkScalar x, SkScalar y, SkScalar width, SkScalar height) { in ApplyAddRect()
[all …]
/external/skia/modules/pathkit/
Dpathkit_wasm_bindings.cpp186 void ApplyArcTo(SkPath& p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in ApplyArcTo()
187 SkScalar radius) { in ApplyArcTo()
195 void ApplyConicTo(SkPath& p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in ApplyConicTo()
196 SkScalar w) { in ApplyConicTo()
200 void ApplyCubicTo(SkPath& p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in ApplyCubicTo()
201 SkScalar x3, SkScalar y3) { in ApplyCubicTo()
205 void ApplyLineTo(SkPath& p, SkScalar x, SkScalar y) { in ApplyLineTo()
209 void ApplyMoveTo(SkPath& p, SkScalar x, SkScalar y) { in ApplyMoveTo()
213 void ApplyQuadTo(SkPath& p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) { in ApplyQuadTo()
320 void ApplyAddRect(SkPath& path, SkScalar x, SkScalar y, SkScalar width, SkScalar height) { in ApplyAddRect()
[all …]

12345678910>>...80