Home
last modified time | relevance | path

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

12345678910>>...83

/external/skia/include/core/
DSkMatrix44.h22 SkScalar fData[4];
30 SkVector4(SkScalar x, SkScalar y, SkScalar z, SkScalar w = SK_Scalar1) {
47 bool equals(SkScalar x, SkScalar y, SkScalar z, SkScalar w = SK_Scalar1) {
52 void set(SkScalar x, SkScalar y, SkScalar z, SkScalar w = SK_Scalar1) {
186 inline SkScalar get(int row, int col) const { in get()
198 inline void set(int row, int col, SkScalar value) { in set()
209 this->set(row, col, SkScalar(value)); in setDouble()
247 void setColMajor(const SkScalar data[]) { this->setColMajorf(data); } in setColMajor()
248 void setRowMajor(const SkScalar data[]) { this->setRowMajorf(data); } in setRowMajor()
253 void set3x3(SkScalar m_00, SkScalar m_10, SkScalar m_20,
[all …]
DSkMatrix.h69 static SkMatrix SK_WARN_UNUSED_RESULT Scale(SkScalar sx, SkScalar sy) { in Scale()
85 static SkMatrix SK_WARN_UNUSED_RESULT Translate(SkScalar dx, SkScalar dy) { in Translate()
98 static SkMatrix SK_WARN_UNUSED_RESULT RotateDeg(SkScalar deg) { in RotateDeg()
103 static SkMatrix SK_WARN_UNUSED_RESULT RotateDeg(SkScalar deg, SkPoint pt) { in RotateDeg()
108 static SkMatrix SK_WARN_UNUSED_RESULT RotateRad(SkScalar rad) { in RotateRad()
118 static SkMatrix SK_WARN_UNUSED_RESULT Skew(SkScalar kx, SkScalar ky) { in Skew()
173 static SkMatrix SK_WARN_UNUSED_RESULT MakeAll(SkScalar scaleX, SkScalar skewX, SkScalar transX, in MakeAll()
174 SkScalar skewY, SkScalar scaleY, SkScalar transY, in MakeAll()
175 SkScalar pers0, SkScalar pers1, SkScalar pers2) { in MakeAll()
327 bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
[all …]
DSkPath.h67 const SkScalar[], int conicWeightCount,
74 static SkPath Circle(SkScalar center_x, SkScalar center_y, SkScalar radius,
78 static SkPath RRect(const SkRect& bounds, SkScalar rx, SkScalar ry,
197 bool interpolate(const SkPath& ending, SkScalar weight, SkPath* out) const;
558 SkPath& moveTo(SkScalar x, SkScalar y);
580 SkPath& rMoveTo(SkScalar dx, SkScalar dy);
594 SkPath& lineTo(SkScalar x, SkScalar y);
625 SkPath& rLineTo(SkScalar dx, SkScalar dy);
643 SkPath& quadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2);
683 SkPath& rQuadTo(SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2);
[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 …]
DSkPathBuilder.h39 SkPathBuilder& moveTo(SkScalar x, SkScalar y) { return this->moveTo(SkPoint::Make(x, y)); } in moveTo()
42 SkPathBuilder& lineTo(SkScalar x, SkScalar y) { return this->lineTo(SkPoint::Make(x, y)); } in lineTo()
45 SkPathBuilder& quadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) { in quadTo()
50 SkPathBuilder& conicTo(SkPoint pt1, SkPoint pt2, SkScalar w);
51 SkPathBuilder& conicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar w) { in conicTo()
54 SkPathBuilder& conicTo(const SkPoint pts[2], SkScalar w) { in conicTo()
59 …SkPathBuilder& cubicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y… in cubicTo()
77 SkPathBuilder& rLineTo(SkScalar x, SkScalar y) { return this->rLineTo({x, y}); } in rLineTo()
79 SkPathBuilder& rQuadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) { in rQuadTo()
82 SkPathBuilder& rConicTo(SkPoint p1, SkPoint p2, SkScalar w);
[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()
95 static inline int SkDScalarRoundToInt(SkScalar x) { in SkDScalarRoundToInt()
102 static inline SkScalar SkScalarFraction(SkScalar x) { in SkScalarFraction()
106 static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } in SkScalarSquare()
[all …]
DSkM44.h21 static SkScalar Dot(SkV2 a, SkV2 b) { return a.x * b.x + a.y * b.y; } in Dot()
22 static SkScalar Cross(SkV2 a, SkV2 b) { return a.x * b.y - a.y * b.x; } in Cross()
30 friend SkV2 operator*(SkV2 v, SkScalar s) { return {v.x*s, v.y*s}; }
31 friend SkV2 operator*(SkScalar s, SkV2 v) { return {v.x*s, v.y*s}; }
32 friend SkV2 operator/(SkV2 v, SkScalar s) { return {v.x/s, v.y/s}; }
37 void operator*=(SkScalar s) { *this = *this * s; }
38 void operator/=(SkScalar s) { *this = *this / s; }
40 SkScalar lengthSquared() const { return Dot(*this, *this); } in lengthSquared()
41 SkScalar length() const { return SkScalarSqrt(this->lengthSquared()); } in length()
43 SkScalar dot(SkV2 v) const { return Dot(*this, v); } in dot()
[all …]
/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 …]
/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/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/utils/
DSkCamera.h33 SkScalar dotWith(SkScalar dx, SkScalar dy, SkScalar dz) const;
34 SkScalar dotWith(const SkV3& v) const { in dotWith()
39 void rotate(SkScalar /*x*/, SkScalar /*y*/, SkScalar /*z*/) {} in rotate() argument
40 void rotateDegrees(SkScalar /*x*/, SkScalar /*y*/, SkScalar /*z*/) {} in rotateDegrees() argument
80 void translate(SkScalar x, SkScalar y, SkScalar z);
81 void rotateX(SkScalar deg);
82 void rotateY(SkScalar deg);
83 void rotateZ(SkScalar deg);
86 void setCameraLocation(SkScalar x, SkScalar y, SkScalar z);
87 SkScalar getCameraLocationX() const;
[all …]
/external/skia/include/effects/
DSkGradientShader.h74 const SkColor colors[], const SkScalar pos[], int count,
78 const SkColor colors[], const SkScalar pos[], int count, in MakeLinear()
99 const SkScalar pos[], int count, SkTileMode mode,
103 const SkScalar pos[], int count, SkTileMode mode) { in MakeLinear()
120 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
121 const SkColor colors[], const SkScalar pos[], int count,
124 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, in MakeRadial()
125 const SkColor colors[], const SkScalar pos[], int count, in MakeRadial()
143 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
145 const SkScalar pos[], int count, SkTileMode mode,
[all …]
DSkImageFilters.h69 static sk_sp<SkImageFilter> AlphaThreshold(const SkRegion& region, SkScalar innerMin,
70 SkScalar outerMax, sk_sp<SkImageFilter> input,
83 static sk_sp<SkImageFilter> Arithmetic(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4,
109 static sk_sp<SkImageFilter> Blur(SkScalar sigmaX, SkScalar sigmaY, SkTileMode tileMode,
112 static sk_sp<SkImageFilter> Blur(SkScalar sigmaX, SkScalar sigmaY, sk_sp<SkImageFilter> input,
148 SkScalar scale, sk_sp<SkImageFilter> displacement,
163 static sk_sp<SkImageFilter> DropShadow(SkScalar dx, SkScalar dy,
164 SkScalar sigmaX, SkScalar sigmaY,
179 static sk_sp<SkImageFilter> DropShadowOnly(SkScalar dx, SkScalar dy,
180 SkScalar sigmaX, SkScalar sigmaY,
[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 …]
DSkColorMatrix.h18 SkScalar fMat[kCount];
33 void setScale(SkScalar rScale, SkScalar gScale, SkScalar bScale,
34 SkScalar aScale = SK_Scalar1);
35 void postTranslate(SkScalar rTrans, SkScalar gTrans, SkScalar bTrans,
36 SkScalar aTrans = 0);
43 void setRotate(Axis, SkScalar degrees);
44 void setSinCos(Axis, SkScalar sine, SkScalar cosine);
45 void preRotate(Axis, SkScalar degrees);
46 void postRotate(Axis, SkScalar degrees);
52 void setSaturation(SkScalar sat);
[all …]
/external/skia/src/core/
DSkDrawShadowInfo.h23 SkScalar fLightRadius;
45 inline SkScalar AmbientBlurRadius(SkScalar height) { in AmbientBlurRadius()
49 inline SkScalar AmbientRecipAlpha(SkScalar height) { in AmbientRecipAlpha()
53 inline SkScalar SpotBlurRadius(SkScalar occluderZ, SkScalar lightZ, SkScalar lightRadius) { in SpotBlurRadius()
57 inline void GetSpotParams(SkScalar occluderZ, SkScalar lightX, SkScalar lightY, SkScalar lightZ, in GetSpotParams()
58 SkScalar lightRadius, in GetSpotParams()
59 SkScalar* blurRadius, SkScalar* scale, SkVector* translate) { in GetSpotParams()
60 SkScalar zRatio = divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in GetSpotParams()
66 inline void GetDirectionalParams(SkScalar occluderZ, SkScalar lightX, SkScalar lightY, in GetDirectionalParams()
67 SkScalar lightZ, SkScalar lightRadius, in GetDirectionalParams()
[all …]
DSkGeometry.h31 int SkFindUnitQuadRoots(SkScalar A, SkScalar B, SkScalar C, SkScalar roots[2]);
44 SkPoint SkEvalQuadAt(const SkPoint src[3], SkScalar t);
45 SkPoint SkEvalQuadTangentAt(const SkPoint src[3], SkScalar t);
50 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent = nullptr);
56 void SkChopQuadAt(const SkPoint src[3], SkPoint dst[5], SkScalar t);
95 int SkFindQuadExtrema(SkScalar a, SkScalar b, SkScalar c, SkScalar tValues[1]);
110 SkScalar SkFindQuadMaxCurvature(const SkPoint src[3]);
132 void SkEvalCubicAt(const SkPoint src[4], SkScalar t, SkPoint* locOrNull,
139 void SkChopCubicAt(const SkPoint src[4], SkPoint dst[7], SkScalar t);
151 void SkChopCubicAt(const SkPoint src[4], SkPoint dst[], const SkScalar t[],
[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/modules/skparagraph/src/
DTextLine.h34 SkScalar fTextShift; // Shifts the text inside the run so it's placed at the right position
54 SkScalar widthWithSpaces,
65 SkScalar spacesWidth() { return fWidthWithSpaces - width(); } in spacesWidth()
66 SkScalar height() const { return fAdvance.fY; } in height()
67 SkScalar width() const { in width()
70 SkScalar shift() const { return fShift; } in shift()
73 SkScalar alphabeticBaseline() const { return fSizes.alphabeticBaseline(); } in alphabeticBaseline()
74 SkScalar ideographicBaseline() const { return fSizes.ideographicBaseline(); } in ideographicBaseline()
75 SkScalar baseline() const { return fSizes.baseline(); } in baseline()
77 …ing RunVisitor = std::function<bool(const Run* run, SkScalar runOffset, TextRange textRange, SkSca…
[all …]
DRun.h60 SkScalar heightMultiplier,
63 SkScalar shiftX);
74 SkScalar posX(size_t index) const { return fPositions[index].fX; } in posX()
75 void addX(size_t index, SkScalar shift) { fPositions[index].fX += shift; } in addX()
76 SkScalar posY(size_t index) const { return fPositions[index].fY; } in posY()
78 void setWidth(SkScalar width) { fAdvance.fX = width; } in setWidth()
79 void setHeight(SkScalar height) { fAdvance.fY = height; } in setHeight()
80 void shift(SkScalar shiftX, SkScalar shiftY) { in shift()
88 SkScalar ascent() const { return fFontMetrics.fAscent; } in ascent()
89 SkScalar descent() const { return fFontMetrics.fDescent; } in descent()
[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 …]

12345678910>>...83