Home
last modified time | relevance | path

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

12345

/external/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 …]
/external/skia/src/core/
DSkStrokerPriv.cpp15 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 …]
DSkStroke.cpp59 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 …]
DSkGeometry.h42 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,
DSkStrokerPriv.h26 const SkVector& normal,
31 const SkVector& beforeUnitNormal,
33 const SkVector& afterUnitNormal,
DSkPoint.cpp215 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/
DAndroidPathRenderer.cpp83 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/
DSkDropShadowImageFilter.cpp76 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()
DSkDisplacementMapEffect.cpp54 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 …]
DSkEmbossMaskFilter.cpp109 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()
DSkDiscretePathEffect.cpp15 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) { in Perterb()
16 SkVector normal = tangent; in Perterb()
83 SkVector v; in filterPath()
DSkBlurImageFilter.cpp26 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()
DSkOffsetImageFilter.cpp33 SkVector vec;
58 SkVector vec;
81 SkVector vec;
/external/skia/gm/
Dimagefiltersscaled.cpp109 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()
Drrect.cpp24 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/
DGrClipMaskManager.h99 const SkVector& clipOffset,
115 const SkVector& clipToMaskOffset,
122 const SkVector& clipToMaskOffset,
136 const SkVector& clipToMaskOffset,
DGrAAConvexTessellator.h136 void init(const SkTDArray<SkVector>& norms, const SkTDArray<SkVector>& bisectors);
216 SkTDArray<SkVector> fNorms;
219 SkTDArray<SkVector> fBisectors;
DGrPathUtils.cpp246 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 …]
DGrAAHairLinePathRenderer.cpp418 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/
DRoundRectTest.cpp18 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 …]
DGeometryTest.cpp62 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/
DSkXPSDevice.h62 const SkVector& unitsPerMeter,
63 const SkVector& pixelsPerMeter,
162 SkVector fCurrentUnitsPerMeter;
163 SkVector fCurrentPixelsPerMeter;
303 SkVector* ppuScale,
309 const SkVector& ppuScale,
/external/skia/experimental/StrokePathRenderer/
DGrStrokePathRenderer.cpp14 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/
DSkRRect.h173 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];
DSkMatrix.h216 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()

12345