Home
last modified time | relevance | path

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

12345678910>>...14

/external/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 …]
/external/skqp/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 …]
/external/skqp/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 …]
/external/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 …]
/external/skia/include/core/
DSkPoint.h165 typedef SkPoint SkVector; typedef
254 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) {
502 static SkScalar Normalize(SkVector* vec);
520 static SkScalar DotProduct(const SkVector& a, const SkVector& b) { in DotProduct()
534 static SkScalar CrossProduct(const SkVector& a, const SkVector& b) { in CrossProduct()
547 SkScalar cross(const SkVector& vec) const { in cross()
[all …]
DSkRRect.h128 SkVector getSimpleRadii() const { in getSimpleRadii()
273 void setRectRadii(const SkRect& rect, const SkVector radii[4]);
300 SkVector radii(Corner corner) const { return fRadii[corner]; } in radii()
500 static bool AreRectAndRadiiValid(const SkRect&, const SkVector[4]);
502 SkRRect(const SkRect& rect, const SkVector radii[4], int32_t type) in SkRRect()
519 SkVector fRadii[4] = {{0, 0}, {0, 0}, {0,0}, {0,0}};
/external/skqp/include/core/
DSkPoint.h165 typedef SkPoint SkVector; typedef
254 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) {
502 static SkScalar Normalize(SkVector* vec);
520 static SkScalar DotProduct(const SkVector& a, const SkVector& b) { in DotProduct()
534 static SkScalar CrossProduct(const SkVector& a, const SkVector& b) { in CrossProduct()
547 SkScalar cross(const SkVector& vec) const { in cross()
[all …]
DSkRRect.h128 SkVector getSimpleRadii() const { in getSimpleRadii()
273 void setRectRadii(const SkRect& rect, const SkVector radii[4]);
300 SkVector radii(Corner corner) const { return fRadii[corner]; } in radii()
500 static bool AreRectAndRadiiValid(const SkRect&, const SkVector[4]);
502 SkRRect(const SkRect& rect, const SkVector radii[4], int32_t type) in SkRRect()
519 SkVector fRadii[4] = {{0, 0}, {0, 0}, {0,0}, {0,0}};
/external/skqp/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;
108 SkVector fFirstOutset;
122 SkVector fPrevOutset;
131 SkVector* newNormal) { in compute_normal()
132 SkVector normal; in compute_normal()
153 SkVector v0 = p1 - p0; in perp_dot()
154 SkVector v1 = p2 - p1; in perp_dot()
184 SkVector v0 = curr - fPathPolygon[0]; in accumulateCentroid()
[all …]
/external/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;
108 SkVector fFirstOutset;
122 SkVector fPrevOutset;
131 SkVector* newNormal) { in compute_normal()
132 SkVector normal; in compute_normal()
153 SkVector v0 = p1 - p0; in perp_dot()
154 SkVector v1 = p2 - p1; in perp_dot()
184 SkVector v0 = curr - fPathPolygon[0]; in accumulateCentroid()
[all …]
/external/skia/docs/
DSkPoint_Reference.bmh35 SkVector v1 = {45, 66};
36 SkVector v2 = SkPoint::Make(45, 66);
207 #Method static void Offset(SkPoint points[], int count, const SkVector& offset)
226 #SeeAlso offset operator+=(const SkVector& v)
249 #SeeAlso offset operator+=(const SkVector& v)
276 #SeeAlso Offset operator+=(const SkVector& v)
351 SkVector vector = line[1] - line[0];
353 SkVector rotate90 = { -vector.fY, vector.fX };
382 SkVector normal;
413 SkVector normal = point;
[all …]
/external/skqp/docs/
DSkPoint_Reference.bmh35 SkVector v1 = {45, 66};
36 SkVector v2 = SkPoint::Make(45, 66);
207 #Method static void Offset(SkPoint points[], int count, const SkVector& offset)
226 #SeeAlso offset operator+=(const SkVector& v)
249 #SeeAlso offset operator+=(const SkVector& v)
276 #SeeAlso Offset operator+=(const SkVector& v)
351 SkVector vector = line[1] - line[0];
353 SkVector rotate90 = { -vector.fY, vector.fX };
382 SkVector normal;
413 SkVector normal = point;
[all …]
/external/skia/modules/particles/include/
DSkParticleData.h35 SkVector fHeading;
48 SkVector fLinear;
61 SkVector getFrameHeading(SkParticleFrame frame) const { in getFrameHeading()
66 SkVector heading = fVelocity.fLinear; in getFrameHeading()
74 return SkVector{ 0, -1 }; in getFrameHeading()
/external/skia/src/effects/imagefilters/
DSkDropShadowImageFilter.cpp92 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterImage()
102 SkVector offsetVec = SkVector::Make(fDx, fDy); in onFilterImage()
144 SkVector offsetVec = SkVector::Make(fDx, fDy); in onFilterNodeBounds()
151 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterNodeBounds()
DSkDisplacementMapEffect.cpp61 void computeDisplacement(Extractor ex, const SkVector& scale, SkBitmap* dst, in computeDisplacement()
68 const SkVector scaleForColor = SkVector::Make(scale.fX * Inv8bit, scale.fY * Inv8bit); in computeDisplacement()
69 const SkVector scaleAdj = SkVector::Make(SK_ScalarHalf - scale.fX * SK_ScalarHalf, in computeDisplacement()
159 SkDisplacementMapEffect::ChannelSelectorType yChannelSelector, SkVector scale, in Make()
175 const SkVector& scale() const { return fScale; } in scale()
193 const SkVector& scale,
210 SkVector fScale;
270 SkVector scale = SkVector::Make(fScale, fScale); in onFilterImage()
385 SkVector scale = SkVector::Make(fScale, fScale); in onFilterNodeBounds()
435 const SkVector& scale, in GrDisplacementMapEffect()
[all …]
/external/skqp/src/effects/imagefilters/
DSkDropShadowImageFilter.cpp92 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterImage()
102 SkVector offsetVec = SkVector::Make(fDx, fDy); in onFilterImage()
144 SkVector offsetVec = SkVector::Make(fDx, fDy); in onFilterNodeBounds()
151 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterNodeBounds()
DSkDisplacementMapEffect.cpp59 void computeDisplacement(Extractor ex, const SkVector& scale, SkBitmap* dst, in computeDisplacement()
66 const SkVector scaleForColor = SkVector::Make(scale.fX * Inv8bit, scale.fY * Inv8bit); in computeDisplacement()
67 const SkVector scaleAdj = SkVector::Make(SK_ScalarHalf - scale.fX * SK_ScalarHalf, in computeDisplacement()
157 SkDisplacementMapEffect::ChannelSelectorType yChannelSelector, SkVector scale, in Make()
173 const SkVector& scale() const { return fScale; } in scale()
191 const SkVector& scale,
208 SkVector fScale;
268 SkVector scale = SkVector::Make(fScale, fScale); in onFilterImage()
383 SkVector scale = SkVector::Make(fScale, fScale); in onFilterNodeBounds()
433 const SkVector& scale, in GrDisplacementMapEffect()
[all …]
/external/skqp/include/private/
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;
/external/skia/include/private/
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;
/external/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()
/external/skqp/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()

12345678910>>...14