/external/skia/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/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/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/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 | 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/skia/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 …]
|
D | SkRRect.h | 128 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/ |
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 …]
|
D | SkRRect.h | 128 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/ |
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/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/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/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/skia/modules/particles/include/ |
D | SkParticleData.h | 35 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/ |
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()
|
D | SkDisplacementMapEffect.cpp | 61 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/ |
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()
|
D | SkDisplacementMapEffect.cpp | 59 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/ |
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/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/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/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()
|