/external/skia/bench/ |
D | PatchBench.cpp | 150 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 …]
|
/external/skqp/bench/ |
D | PatchBench.cpp | 149 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/skia/src/core/ |
D | SkStrokerPriv.cpp | 15 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 …]
|
D | SkStroke.cpp | 89 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 …]
|
D | SkGeometry.h | 35 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,
|
D | SkImageFilterTypes.cpp | 16 SkVector v = SkVector::Make(SkIntToScalar(x), SkIntToScalar(y)); in map_as_vector() 21 static SkVector map_as_vector(SkScalar x, SkScalar y, const SkMatrix& matrix) { in map_as_vector() 22 SkVector v = SkVector::Make(x, y); in map_as_vector() 105 SkVector v = map_as_vector(geom.fWidth, geom.fHeight, matrix); in map()
|
D | SkGlyphRun.h | 36 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;
|
D | SkGeometry.cpp | 19 static SkVector to_vector(const Sk2s& x) { in to_vector() 20 SkVector vector; in to_vector() 114 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent) { in SkEvalQuadAt() 130 SkVector SkEvalQuadTangentAt(const SkPoint src[3], SkScalar t) { in SkEvalQuadTangentAt() 177 float SkMeasureAngleBetweenVectors(SkVector a, SkVector b) { in SkMeasureAngleBetweenVectors() 184 SkVector SkFindBisector(SkVector a, SkVector b) { in SkFindBisector() 185 std::array<SkVector, 2> v; in SkFindBisector() 217 SkVector tan0 = src[1] - src[0]; in SkFindQuadMidTangent() 218 SkVector tan1 = src[2] - src[1]; in SkFindQuadMidTangent() 219 SkVector bisector = SkFindBisector(tan0, -tan1); in SkFindQuadMidTangent() [all …]
|
/external/skqp/src/core/ |
D | SkStrokerPriv.cpp | 15 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 …]
|
D | SkStroke.cpp | 56 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/skqp/include/core/ |
D | SkPoint.h | 165 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 …]
|
/external/skia/include/core/ |
D | SkPoint.h | 155 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 …]
|
/external/skia/modules/particles/include/ |
D | SkParticleEffect.h | 133 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;
|
/external/skqp/src/utils/ |
D | SkPolyUtils.cpp | 24 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 …]
|
D | SkShadowTessellator.cpp | 57 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/tests/ |
D | SkSLCross.cpp | 14 GrSurfaceDrawContext*, SkVector a, 15 SkVector b, float expectedCrossProduct); 41 VisualizeCrossProductSignFP(SkVector a, SkVector b) in VisualizeCrossProductSignFP() 81 const SkVector fA, fB; 87 GrSurfaceDrawContext* rtc, SkVector a, SkVector b, in run_test()
|
/external/skia/src/utils/ |
D | SkPolyUtils.cpp | 24 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 …]
|
D | SkShadowTessellator.cpp | 58 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; 133 SkVector* newNormal) { in compute_normal() 134 SkVector normal; in compute_normal() 155 SkVector v0 = p1 - p0; in perp_dot() 156 SkVector v1 = p2 - p1; in perp_dot() 188 SkVector v0 = curr - fPathPolygon[0]; in accumulateCentroid() [all …]
|
/external/skqp/docs/ |
D | SkPoint_Reference.bmh | 35 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/src/effects/imagefilters/ |
D | SkDropShadowImageFilter.cpp | 92 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()
|
/external/skqp/include/private/ |
D | GrCCClipPath.h | 63 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/src/effects/imagefilters/ |
D | SkDisplacementMapImageFilter.cpp | 156 SkVector scale, 168 const SkVector& scale() const { return fScale; } in scale() 187 const SkVector& scale, 195 SkVector fScale; 203 static void compute_displacement(Extractor ex, const SkVector& scale, SkBitmap* dst, in compute_displacement() 210 const SkVector scaleForColor = SkVector::Make(scale.fX * Inv8bit, scale.fY * Inv8bit); in compute_displacement() 211 const SkVector scaleAdj = SkVector::Make(SK_ScalarHalf - scale.fX * SK_ScalarHalf, in compute_displacement() 283 SkVector scale = SkVector::Make(fScale, fScale); in onFilterImage() 384 SkVector scale = SkVector::Make(fScale, fScale); in onFilterNodeBounds() 426 SkVector scale, in Make() [all …]
|
D | SkDropShadowImageFilter.cpp | 133 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()
|
/external/skqp/gm/ |
D | imagefiltersscaled.cpp | 118 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/skia/gm/ |
D | imagefiltersscaled.cpp | 114 SkVector scales[] = { in onDraw() 115 SkVector::Make(SkScalarInvert(2), SkScalarInvert(2)), in onDraw() 116 SkVector::Make(SkIntToScalar(1), SkIntToScalar(1)), in onDraw() 117 SkVector::Make(SkIntToScalar(1), SkIntToScalar(2)), in onDraw() 118 SkVector::Make(SkIntToScalar(2), SkIntToScalar(1)), in onDraw() 119 SkVector::Make(SkIntToScalar(2), SkIntToScalar(2)), in onDraw()
|