Home
last modified time | relevance | path

Searched refs:SkVector (Results 1 – 25 of 449) sorted by relevance

12345678910>>...18

/third_party/skia/bench/
DPatchBench.cpp150 SkVector fScale;
239 DEF_BENCH( return new PatchBench(SkVector::Make(0.1f, 0.1f), PatchBench::kNone_VertexMode); )
240 DEF_BENCH( return new PatchBench(SkVector::Make(0.1f, 0.1f), PatchBench::kColors_VertexMode); )
241 DEF_BENCH( return new PatchBench(SkVector::Make(0.1f, 0.1f), PatchBench::kTexCoords_VertexMode); )
242 DEF_BENCH( return new PatchBench(SkVector::Make(0.1f, 0.1f), PatchBench::kBoth_VertexMode); )
243 DEF_BENCH( return new PatchBench(SkVector::Make(1.f, 1.0f), PatchBench::kNone_VertexMode); )
244 DEF_BENCH( return new PatchBench(SkVector::Make(1.0f, 1.0f), PatchBench::kColors_VertexMode); )
245 DEF_BENCH( return new PatchBench(SkVector::Make(1.0f, 1.0f), PatchBench::kTexCoords_VertexMode); )
246 DEF_BENCH( return new PatchBench(SkVector::Make(1.0f, 1.0f), PatchBench::kBoth_VertexMode); )
247 DEF_BENCH( return new PatchBench(SkVector::Make(3.0f, 3.0f), PatchBench::kNone_VertexMode); )
[all …]
/third_party/flutter/skia/bench/
DPatchBench.cpp149 SkVector fScale;
238 DEF_BENCH( return new PatchBench(SkVector::Make(0.1f, 0.1f), PatchBench::kNone_VertexMode); )
239 DEF_BENCH( return new PatchBench(SkVector::Make(0.1f, 0.1f), PatchBench::kColors_VertexMode); )
240 DEF_BENCH( return new PatchBench(SkVector::Make(0.1f, 0.1f), PatchBench::kTexCoords_VertexMode); )
241 DEF_BENCH( return new PatchBench(SkVector::Make(0.1f, 0.1f), PatchBench::kBoth_VertexMode); )
242 DEF_BENCH( return new PatchBench(SkVector::Make(1.f, 1.0f), PatchBench::kNone_VertexMode); )
243 DEF_BENCH( return new PatchBench(SkVector::Make(1.0f, 1.0f), PatchBench::kColors_VertexMode); )
244 DEF_BENCH( return new PatchBench(SkVector::Make(1.0f, 1.0f), PatchBench::kTexCoords_VertexMode); )
245 DEF_BENCH( return new PatchBench(SkVector::Make(1.0f, 1.0f), PatchBench::kBoth_VertexMode); )
246 DEF_BENCH( return new PatchBench(SkVector::Make(3.0f, 3.0f), PatchBench::kNone_VertexMode); )
[all …]
/third_party/skia/src/core/
DSkStrokerPriv.cpp15 static void ButtCapper(SkPath* path, const SkPoint& pivot, const SkVector& normal, in ButtCapper()
20 static void RoundCapper(SkPath* path, const SkPoint& pivot, const SkVector& normal, in RoundCapper()
22 SkVector parallel; in RoundCapper()
31 static void SquareCapper(SkPath* path, const SkPoint& pivot, const SkVector& normal, in SquareCapper()
33 SkVector parallel; in SquareCapper()
48 static bool is_clockwise(const SkVector& before, const SkVector& after) { in is_clockwise()
70 static void HandleInnerJoin(SkPath* inner, const SkPoint& pivot, const SkVector& after) { in HandleInnerJoin()
84 static void BluntJoiner(SkPath* outer, SkPath* inner, const SkVector& beforeUnitNormal, in BluntJoiner()
85 const SkPoint& pivot, const SkVector& afterUnitNormal, in BluntJoiner()
87 SkVector after; in BluntJoiner()
[all …]
DSkStroke.cpp89 static inline bool degenerate_vector(const SkVector& v) { in degenerate_vector()
95 SkVector* normal, SkVector* unitNormal) { in set_normal_unitnormal()
105 static bool set_normal_unitnormal(const SkVector& vec, in set_normal_unitnormal()
107 SkVector* normal, SkVector* unitNormal) { in set_normal_unitnormal()
195 SkVector fFirstNormal, fPrevNormal, fFirstUnitNormal, fPrevUnitNormal;
262 const SkVector& normalAB, const SkVector& unitNormalAB,
263 SkVector* normalBC, SkVector* unitNormalBC);
265 const SkVector& normalAB, const SkVector& unitNormalAB,
266 SkVector* normalCD, SkVector* unitNormalCD);
268 const SkVector& normalAB, const SkVector& unitNormalAB,
[all …]
DSkGeometry.h35 float SkMeasureAngleBetweenVectors(SkVector, SkVector);
40 SkVector SkFindBisector(SkVector, SkVector);
50 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent = nullptr);
133 SkVector* tangentOrNull, SkVector* curvatureOrNull);
332 void evalAt(SkScalar t, SkPoint* pos, SkVector* tangent = nullptr) const;
338 SkVector evalTangentAt(SkScalar t) const;
340 void computeAsQuadError(SkVector* err) const;
378 static int BuildUnitArc(const SkVector& start, const SkVector& stop, SkRotationDirection,
DSkGlyphRun.h36 SkSpan<const SkVector> scaledRotations);
47 SkSpan<const SkVector> scaledRotations() const { return fScaledRotations; } in scaledRotations()
58 const SkSpan<const SkVector> fScaledRotations;
131 std::tuple<SkSpan<const SkPoint>, SkSpan<const SkVector>>
149 SkSpan<const SkVector> scaledRotations);
157 SkAutoTMalloc<SkVector> fScaledRotations;
DSkGeometry.cpp20 static SkVector to_vector(const Sk2s& x) { in to_vector()
21 SkVector vector; in to_vector()
115 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent) { in SkEvalQuadAt()
131 SkVector SkEvalQuadTangentAt(const SkPoint src[3], SkScalar t) { in SkEvalQuadTangentAt()
178 float SkMeasureAngleBetweenVectors(SkVector a, SkVector b) { in SkMeasureAngleBetweenVectors()
185 SkVector SkFindBisector(SkVector a, SkVector b) { in SkFindBisector()
186 std::array<SkVector, 2> v; in SkFindBisector()
218 SkVector tan0 = src[1] - src[0]; in SkFindQuadMidTangent()
219 SkVector tan1 = src[2] - src[1]; in SkFindQuadMidTangent()
220 SkVector bisector = SkFindBisector(tan0, -tan1); in SkFindQuadMidTangent()
[all …]
/third_party/flutter/skia/src/core/
DSkStrokerPriv.cpp15 static void ButtCapper(SkPath* path, const SkPoint& pivot, const SkVector& normal, in ButtCapper()
20 static void RoundCapper(SkPath* path, const SkPoint& pivot, const SkVector& normal, in RoundCapper()
22 SkVector parallel; in RoundCapper()
31 static void SquareCapper(SkPath* path, const SkPoint& pivot, const SkVector& normal, in SquareCapper()
33 SkVector parallel; in SquareCapper()
48 static bool is_clockwise(const SkVector& before, const SkVector& after) { in is_clockwise()
70 static void HandleInnerJoin(SkPath* inner, const SkPoint& pivot, const SkVector& after) { in HandleInnerJoin()
84 static void BluntJoiner(SkPath* outer, SkPath* inner, const SkVector& beforeUnitNormal, in BluntJoiner()
85 const SkPoint& pivot, const SkVector& afterUnitNormal, in BluntJoiner()
87 SkVector after; in BluntJoiner()
[all …]
DSkStroke.cpp56 static inline bool degenerate_vector(const SkVector& v) { in degenerate_vector()
62 SkVector* normal, SkVector* unitNormal) { in set_normal_unitnormal()
72 static bool set_normal_unitnormal(const SkVector& vec, in set_normal_unitnormal()
74 SkVector* normal, SkVector* unitNormal) { in set_normal_unitnormal()
162 SkVector fFirstNormal, fPrevNormal, fFirstUnitNormal, fPrevUnitNormal;
229 const SkVector& normalAB, const SkVector& unitNormalAB,
230 SkVector* normalBC, SkVector* unitNormalBC);
232 const SkVector& normalAB, const SkVector& unitNormalAB,
233 SkVector* normalCD, SkVector* unitNormalCD);
235 const SkVector& normalAB, const SkVector& unitNormalAB,
[all …]
/third_party/flutter/skia/include/core/
DSkPoint.h155 typedef SkPoint SkVector; typedef
244 static void Offset(SkPoint points[], int count, const SkVector& offset) { in Offset()
361 void operator+=(const SkVector& v) {
370 void operator-=(const SkVector& v) {
451 friend SkVector operator-(const SkPoint& a, const SkPoint& b) {
465 friend SkPoint operator+(const SkPoint& a, const SkVector& b) {
492 static SkScalar Normalize(SkVector* vec);
510 static SkScalar DotProduct(const SkVector& a, const SkVector& b) { in DotProduct()
524 static SkScalar CrossProduct(const SkVector& a, const SkVector& b) { in CrossProduct()
537 SkScalar cross(const SkVector& vec) const { in cross()
[all …]
DSkRRect.h118 SkVector getSimpleRadii() const { in getSimpleRadii()
263 void setRectRadii(const SkRect& rect, const SkVector radii[4]);
290 SkVector radii(Corner corner) const { return fRadii[corner]; } in radii()
490 static bool AreRectAndRadiiValid(const SkRect&, const SkVector[4]);
492 SkRRect(const SkRect& rect, const SkVector radii[4], int32_t type) in SkRRect()
509 SkVector fRadii[4] = {{0, 0}, {0, 0}, {0,0}, {0,0}};
/third_party/skia/include/core/
DSkPoint.h155 typedef SkPoint SkVector; typedef
244 static void Offset(SkPoint points[], int count, const SkVector& offset) { in Offset()
371 void operator+=(const SkVector& v) {
380 void operator-=(const SkVector& v) {
461 friend SkVector operator-(const SkPoint& a, const SkPoint& b) {
475 friend SkPoint operator+(const SkPoint& a, const SkVector& b) {
506 static SkScalar Normalize(SkVector* vec);
524 static SkScalar DotProduct(const SkVector& a, const SkVector& b) { in DotProduct()
538 static SkScalar CrossProduct(const SkVector& a, const SkVector& b) { in CrossProduct()
551 SkScalar cross(const SkVector& vec) const { in cross()
[all …]
/third_party/skia/modules/particles/include/
DSkParticleEffect.h133 void start(double now, bool looping, SkPoint position, SkVector heading, float scale,
134 SkVector velocity, float spin, SkColor4f color, float frame, float seed);
158 SkVector getHeading() const { return fState.fHeading; } in getHeading()
160 SkVector getVelocity() const { return fState.fVelocity; } in getVelocity()
168 void setHeading (SkVector h) { fState.fHeading = h; } in setHeading()
170 void setVelocity(SkVector v) { fState.fVelocity = v; } in setVelocity()
218 SkVector fHeading;
220 SkVector fVelocity;
/third_party/skia/tests/
DSkSLCross.cpp15 skgpu::v1::SurfaceDrawContext*, SkVector a,
16 SkVector b, float expectedCrossProduct);
42 VisualizeCrossProductSignFP(SkVector a, SkVector b) in VisualizeCrossProductSignFP()
87 const SkVector fA, fB;
93 skgpu::v1::SurfaceDrawContext* sdc, SkVector a, SkVector b, in run_test()
/third_party/skia/src/utils/
DSkPolyUtils.cpp24 SkVector fV;
32 static int compute_side(const SkPoint& p0, const SkVector& v, const SkPoint& p) { in compute_side()
33 SkVector w = p - p0; in compute_side()
50 SkVector v0 = polygonVerts[1] - polygonVerts[0]; in SkGetPolygonWinding()
52 SkVector v1 = polygonVerts[curr] - polygonVerts[0]; in SkGetPolygonWinding()
68 SkVector perp = SkVector::Make(p0.fY - p1.fY, p1.fX - p0.fX); in compute_offset_vector()
94 const SkVector& v0 = s0.fV; in compute_intersection()
95 const SkVector& v1 = s1.fV; in compute_intersection()
96 SkVector w = s1.fP0 - s0.fP0; in compute_intersection()
194 SkVector v0 = polygonVerts[currIndex] - polygonVerts[prevIndex]; in SkIsConvexPolygon()
[all …]
DSkShadowTessellator.cpp58 void addEdge(const SkVector& nextPoint, const SkVector& nextNormal, SkColor umbraColor,
81 bool addArc(const SkVector& nextNormal, SkScalar offset, bool finishArc);
101 SkTDArray<SkVector> fClipVectors;
110 SkVector fFirstOutset;
124 SkVector fPrevOutset;
129 SkVector* newNormal) { in compute_normal()
130 SkVector normal; in compute_normal()
151 SkVector v0 = p1 - p0; in perp_dot()
152 SkVector v1 = p2 - p1; in perp_dot()
184 SkVector v0 = curr - fPathPolygon[0]; in accumulateCentroid()
[all …]
/third_party/flutter/skia/src/utils/
DSkPolyUtils.cpp24 SkVector fV;
32 static int compute_side(const SkPoint& p0, const SkVector& v, const SkPoint& p) { in compute_side()
33 SkVector w = p - p0; in compute_side()
50 SkVector v0 = polygonVerts[1] - polygonVerts[0]; in SkGetPolygonWinding()
52 SkVector v1 = polygonVerts[curr] - polygonVerts[0]; in SkGetPolygonWinding()
68 SkVector perp = SkVector::Make(p0.fY - p1.fY, p1.fX - p0.fX); in compute_offset_vector()
87 const SkVector& v0 = s0.fV; in compute_intersection()
88 const SkVector& v1 = s1.fV; in compute_intersection()
89 SkVector w = s1.fP0 - s0.fP0; in compute_intersection()
183 SkVector v0 = polygonVerts[currIndex] - polygonVerts[prevIndex]; in SkIsConvexPolygon()
[all …]
DSkShadowTessellator.cpp57 void addEdge(const SkVector& nextPoint, const SkVector& nextNormal, SkColor umbraColor,
80 bool addArc(const SkVector& nextNormal, SkScalar offset, bool finishArc);
100 SkTDArray<SkVector> fClipVectors;
109 SkVector fFirstOutset;
123 SkVector fPrevOutset;
132 SkVector* newNormal) { in compute_normal()
133 SkVector normal; in compute_normal()
154 SkVector v0 = p1 - p0; in perp_dot()
155 SkVector v1 = p2 - p1; in perp_dot()
187 SkVector v0 = curr - fPathPolygon[0]; in accumulateCentroid()
[all …]
/third_party/flutter/skia/src/effects/imagefilters/
DSkDropShadowImageFilter.cpp126 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterImage()
136 SkVector offsetVec = SkVector::Make(fDx, fDy); in onFilterImage()
166 SkVector offsetVec = SkVector::Make(fDx, fDy); in onFilterNodeBounds()
173 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterNodeBounds()
DSkDisplacementMapEffect.cpp194 SkColorChannel xChannelSelector, SkColorChannel yChannelSelector, SkVector scale, in Make()
210 const SkVector& scale() const { return fScale; } in scale()
228 const SkVector& scale, sk_sp<GrTextureProxy> displacement,
245 SkVector fScale;
251 static void compute_displacement(Extractor ex, const SkVector& scale, SkBitmap* dst, in compute_displacement()
258 const SkVector scaleForColor = SkVector::Make(scale.fX * Inv8bit, scale.fY * Inv8bit); in compute_displacement()
259 const SkVector scaleAdj = SkVector::Make(SK_ScalarHalf - scale.fX * SK_ScalarHalf, in compute_displacement()
331 SkVector scale = SkVector::Make(fScale, fScale); in onFilterImage()
436 SkVector scale = SkVector::Make(fScale, fScale); in onFilterNodeBounds()
486 const SkVector& scale, in GrDisplacementMapEffect()
[all …]
/third_party/flutter/skia/src/gpu/ccpr/
DGrCCClipPath.h63 const SkVector& atlasScale() const { SkASSERT(fHasAtlasTransform); return fAtlasScale; } in atlasScale()
64 const SkVector& atlasTranslate() const { SkASSERT(fHasAtlasTransform); return fAtlasTranslate; } in atlasTranslate()
76 SkVector fAtlasScale;
77 SkVector fAtlasTranslate;
/third_party/skia/src/effects/imagefilters/
DSkDropShadowImageFilter.cpp133 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterImage()
143 SkVector offsetVec = SkVector::Make(fDx, fDy); in onFilterImage()
173 SkVector offsetVec = SkVector::Make(fDx, fDy); in onFilterNodeBounds()
180 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterNodeBounds()
DSkDisplacementMapImageFilter.cpp157 SkVector scale,
184 const SkVector& scale,
192 SkVector fScale;
200 static void compute_displacement(Extractor ex, const SkVector& scale, SkBitmap* dst, in compute_displacement()
207 const SkVector scaleForColor = SkVector::Make(scale.fX * Inv8bit, scale.fY * Inv8bit); in compute_displacement()
208 const SkVector scaleAdj = SkVector::Make(SK_ScalarHalf - scale.fX * SK_ScalarHalf, in compute_displacement()
280 SkVector scale = SkVector::Make(fScale, fScale); in onFilterImage()
380 SkVector scale = SkVector::Make(fScale, fScale); in onFilterNodeBounds()
417 SkVector scale, in Make()
463 const SkVector& scale, in GrDisplacementMapEffect()
[all …]
/third_party/flutter/skia/gm/
Dimagefiltersscaled.cpp118 SkVector scales[] = { in onDraw()
119 SkVector::Make(SkScalarInvert(2), SkScalarInvert(2)), in onDraw()
120 SkVector::Make(SkIntToScalar(1), SkIntToScalar(1)), in onDraw()
121 SkVector::Make(SkIntToScalar(1), SkIntToScalar(2)), in onDraw()
122 SkVector::Make(SkIntToScalar(2), SkIntToScalar(1)), in onDraw()
123 SkVector::Make(SkIntToScalar(2), SkIntToScalar(2)), in onDraw()
/third_party/skia/gm/
Dimagefiltersscaled.cpp113 SkVector scales[] = { in onDraw()
114 SkVector::Make(SkScalarInvert(2), SkScalarInvert(2)), in onDraw()
115 SkVector::Make(SkIntToScalar(1), SkIntToScalar(1)), in onDraw()
116 SkVector::Make(SkIntToScalar(1), SkIntToScalar(2)), in onDraw()
117 SkVector::Make(SkIntToScalar(2), SkIntToScalar(1)), in onDraw()
118 SkVector::Make(SkIntToScalar(2), SkIntToScalar(2)), in onDraw()

12345678910>>...18