/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/skia/src/core/ |
D | SkStrokerPriv.cpp | 15 const SkVector& normal, const SkPoint& stop, in ButtCapper() 22 const SkVector& normal, const SkPoint& stop, in RoundCapper() 25 SkVector parallel; in RoundCapper() 35 const SkVector& normal, const SkPoint& stop, in SquareCapper() 38 SkVector parallel; in SquareCapper() 56 static bool is_clockwise(const SkVector& before, const SkVector& after) in is_clockwise() 79 static void HandleInnerJoin(SkPath* inner, const SkPoint& pivot, const SkVector& after) in HandleInnerJoin() 94 static void BluntJoiner(SkPath* outer, SkPath* inner, const SkVector& beforeUnitNormal, in BluntJoiner() 95 const SkPoint& pivot, const SkVector& afterUnitNormal, in BluntJoiner() 98 SkVector after; in BluntJoiner() [all …]
|
D | SkStroke.cpp | 59 static inline bool degenerate_vector(const SkVector& v) { in degenerate_vector() 64 static inline bool normals_too_curvy(const SkVector& norm0, SkVector& norm1) { in normals_too_curvy() 77 static inline bool normals_too_pinchy(const SkVector& norm0, SkVector& norm1) { in normals_too_pinchy() 95 SkVector* normal, SkVector* unitNormal) { in set_normal_unitnormal() 104 static bool set_normal_unitnormal(const SkVector& vec, in set_normal_unitnormal() 106 SkVector* normal, SkVector* unitNormal) { in set_normal_unitnormal() 191 SkVector fFirstNormal, fPrevNormal, fFirstUnitNormal, fPrevUnitNormal; 258 const SkVector& normalAB, const SkVector& unitNormalAB, 259 SkVector* normalBC, SkVector* unitNormalBC); 261 const SkVector& normalAB, const SkVector& unitNormalAB, [all …]
|
D | SkGeometry.h | 42 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent = NULL); 111 SkVector* tangentOrNull, SkVector* curvatureOrNull); 204 int SkBuildQuadArc(const SkVector& unitStart, const SkVector& unitStop, 242 void evalAt(SkScalar t, SkPoint* pos, SkVector* tangent = NULL) const; 247 SkVector evalTangentAt(SkScalar t) const; 249 void computeAsQuadError(SkVector* err) const; 286 static int BuildUnitArc(const SkVector& start, const SkVector& stop, SkRotationDirection,
|
D | SkStrokerPriv.h | 26 const SkVector& normal, 31 const SkVector& beforeUnitNormal, 33 const SkVector& afterUnitNormal,
|
D | SkPoint.cpp | 215 SkVector u = b - a; in distanceToLineBetweenSqd() 216 SkVector v = *this - a; in distanceToLineBetweenSqd() 249 SkVector u = b - a; in distanceToLineSegmentBetweenSqd() 250 SkVector v = *this - a; in distanceToLineSegmentBetweenSqd()
|
/external/skia/experimental/AndroidPathRenderer/ |
D | AndroidPathRenderer.cpp | 83 inline SkVector totalOffsetFromNormals(const SkVector& normalA, const SkVector& normalB) { in totalOffsetFromNormals() 84 SkVector pseudoNormal = normalA + normalB; in totalOffsetFromNormals() 89 inline void scaleOffsetForStrokeWidth(SkVector& offset, float halfStrokeWidth, in scaleOffsetForStrokeWidth() 124 SkVector lastNormal; in getStrokeVerticesFromPerimeter() 130 SkVector nextNormal; in getStrokeVerticesFromPerimeter() 135 SkVector totalOffset = totalOffsetFromNormals(lastNormal, nextNormal); in getStrokeVerticesFromPerimeter() 162 SkVector lastNormal; in getStrokeVerticesFromUnclosedVertices() 165 SkVector nextNormal; in getStrokeVerticesFromUnclosedVertices() 170 SkVector totalOffset; in getStrokeVerticesFromUnclosedVertices() 190 SkVector totalOffset = lastNormal; in getStrokeVerticesFromUnclosedVertices() [all …]
|
/external/skia/src/effects/ |
D | SkDropShadowImageFilter.cpp | 76 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterImage() 87 SkVector offsetVec = SkVector::Make(fDx, fDy); in onFilterImage() 122 SkVector offsetVec = SkVector::Make(fDx, fDy); in onFilterBounds() 126 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterBounds()
|
D | SkDisplacementMapEffect.cpp | 54 void computeDisplacement(const SkVector& scale, SkBitmap* dst, in computeDisplacement() 62 const SkVector scaleForColor = SkVector::Make(SkScalarMul(scale.fX, Inv8bit), in computeDisplacement() 64 const SkVector scaleAdj = SkVector::Make(SK_ScalarHalf - SkScalarMul(scale.fX, SK_ScalarHalf), in computeDisplacement() 87 const SkVector& scale, SkBitmap* dst, in computeDisplacement() 117 const SkVector& scale, SkBitmap* dst, in computeDisplacement() 248 SkVector scale = SkVector::Make(fScale, fScale); in onFilterImage() 273 SkVector scale = SkVector::Make(fScale, fScale); in onFilterBounds() 335 SkDisplacementMapEffect::ChannelSelectorType yChannelSelector, SkVector scale, in Create() 362 const SkVector& scale() const { return fScale; } in scale() 374 const SkVector& scale, [all …]
|
D | SkEmbossMaskFilter.cpp | 109 matrix.mapVectors((SkVector*)(void*)light.fDirection, in filterMask() 110 (SkVector*)(void*)fLight.fDirection, 1); in filterMask() 114 SkVector* vec = (SkVector*)(void*)light.fDirection; in filterMask()
|
D | SkDiscretePathEffect.cpp | 15 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) { in Perterb() 16 SkVector normal = tangent; in Perterb() 83 SkVector v; in filterPath()
|
D | SkBlurImageFilter.cpp | 26 static SkVector mapSigma(const SkSize& localSigma, const SkMatrix& ctm) { in mapSigma() 27 SkVector sigma = SkVector::Make(localSigma.width(), localSigma.height()); in mapSigma() 175 SkVector sigma = mapSigma(fSigma, ctx.ctm()); in onFilterImage() 247 SkVector sigma = mapSigma(fSigma, ctm); in onFilterBounds() 270 SkVector sigma = mapSigma(fSigma, ctx.ctm()); in filterImageGPU()
|
D | SkOffsetImageFilter.cpp | 33 SkVector vec; 58 SkVector vec; 81 SkVector vec;
|
/external/skia/gm/ |
D | imagefiltersscaled.cpp | 109 SkVector scales[] = { in onDraw() 110 SkVector::Make(SkScalarInvert(2), SkScalarInvert(2)), in onDraw() 111 SkVector::Make(SkIntToScalar(1), SkIntToScalar(1)), in onDraw() 112 SkVector::Make(SkIntToScalar(1), SkIntToScalar(2)), in onDraw() 113 SkVector::Make(SkIntToScalar(2), SkIntToScalar(1)), in onDraw() 114 SkVector::Make(SkIntToScalar(2), SkIntToScalar(2)), in onDraw()
|
D | rrect.cpp | 24 SkVector radii[4]; in inset0() 44 SkVector radii[4]; in inset1() 60 SkVector radii[4]; in inset2() 88 SkVector radii[4]; in inset3() 145 SkVector radii[4] = { in onDraw()
|
/external/skia/src/gpu/ |
D | GrClipMaskManager.h | 99 const SkVector& clipOffset, 115 const SkVector& clipToMaskOffset, 122 const SkVector& clipToMaskOffset, 136 const SkVector& clipToMaskOffset,
|
D | GrAAConvexTessellator.h | 136 void init(const SkTDArray<SkVector>& norms, const SkTDArray<SkVector>& bisectors); 216 SkTDArray<SkVector> fNorms; 219 SkTDArray<SkVector> fBisectors;
|
D | GrPathUtils.cpp | 246 SkVector lineVec = qPts[(maxEdge + 1)%3] - qPts[maxEdge]; in set() 365 const SkVector& ab, in is_point_within_cubic_tangents() 366 const SkVector& dc, in is_point_within_cubic_tangents() 370 SkVector ap = p - a; in is_point_within_cubic_tangents() 383 SkVector dp = p - d; in is_point_within_cubic_tangents() 408 SkVector ab = p[1] - p[0]; in convert_noninflect_cubic_to_quads() 409 SkVector dc = p[2] - p[3]; in convert_noninflect_cubic_to_quads() 433 SkVector da = p[0] - p[3]; in convert_noninflect_cubic_to_quads() 459 if (SkVector::DotProduct(da, dc) < 0 || SkVector::DotProduct(ab,da) > 0) { in convert_noninflect_cubic_to_quads() 484 SkVector c0 = p[0]; in convert_noninflect_cubic_to_quads() [all …]
|
D | GrAAHairLinePathRenderer.cpp | 418 SkVector fQuadCoord; 427 static void intersect_lines(const SkPoint& ptA, const SkVector& normA, in intersect_lines() 428 const SkPoint& ptB, const SkVector& normB, in intersect_lines() 482 SkVector ab = b; in bloat_quad() 484 SkVector ac = c; in bloat_quad() 486 SkVector cb = b; in bloat_quad() 493 SkVector abN; in bloat_quad() 494 abN.setOrthog(ab, SkVector::kLeft_Side); in bloat_quad() 500 SkVector cbN; in bloat_quad() 501 cbN.setOrthog(cb, SkVector::kLeft_Side); in bloat_quad() [all …]
|
/external/skia/tests/ |
D | RoundRectTest.cpp | 18 const SkVector vec[] = { { rad, rad }, { 0, rad }, { rad, rad }, { 0, rad } }; in test_tricky_radii() 25 SkVector radii[4] = { in test_tricky_radii() 95 SkVector radii[4] = { { l, t }, { r, t }, { r, b }, { l, b } }; in test_9patch_rrect() 128 SkVector rr1_2_radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }; in test_round_rect_basic() 148 SkVector rr2_2_radii[4] = { { halfPoint.fX, halfPoint.fY }, { halfPoint.fX, halfPoint.fY }, in test_round_rect_basic() 168 SkVector rr3_2_radii[4] = { { 5, 5 }, { 5, 5 }, { 5, 5 }, { 5, 5 } }; in test_round_rect_basic() 330 static const SkVector gRadii[kNumRRects][4] = { in test_round_rect_contains_rect() 462 const SkVector& origUL = orig.radii(SkRRect::kUpperLeft_Corner); \ 463 const SkVector& origUR = orig.radii(SkRRect::kUpperRight_Corner); \ 464 const SkVector& origLR = orig.radii(SkRRect::kLowerRight_Corner); \ [all …]
|
D | GeometryTest.cpp | 62 SkVector v0; in test_evalquadat() 64 SkVector v1 = SkEvalQuadTangentAt(pts, t); in test_evalquadat() 80 SkVector v0, v1; in test_conic_eval_tan()
|
/external/skia/include/device/xps/ |
D | SkXPSDevice.h | 62 const SkVector& unitsPerMeter, 63 const SkVector& pixelsPerMeter, 162 SkVector fCurrentUnitsPerMeter; 163 SkVector fCurrentPixelsPerMeter; 303 SkVector* ppuScale, 309 const SkVector& ppuScale,
|
/external/skia/experimental/StrokePathRenderer/ |
D | GrStrokePathRenderer.cpp | 14 static bool is_clockwise(const SkVector& before, const SkVector& after) { in is_clockwise() 127 SkVector firstDir, dir; 141 SkVector v0 = dir; 144 SkVector dirT; 154 SkVector v1 = dir;
|
/external/skia/include/core/ |
D | SkRRect.h | 173 void setRectRadii(const SkRect& rect, const SkVector radii[4]); 184 const SkVector& radii(Corner corner) const { return fRadii[corner]; } in radii() 191 const SkVector& getSimpleRadii() const { in getSimpleRadii() 294 SkVector fRadii[4];
|
D | SkMatrix.h | 216 void setTranslate(const SkVector& v) { this->setTranslate(v.fX, v.fY); } in setTranslate() 499 void mapVectors(SkVector dst[], const SkVector src[], int count) const; 508 void mapVectors(SkVector vecs[], int count) const { in mapVectors() 512 void mapVector(SkScalar dx, SkScalar dy, SkVector* result) const { in mapVector() 513 SkVector vec = { dx, dy }; in mapVector() 517 SkVector mapVector(SkScalar dx, SkScalar dy) const { in mapVector() 518 SkVector vec = { dx, dy }; in mapVector()
|