Home
last modified time | relevance | path

Searched refs:SkVector (Results 1 – 25 of 113) 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.cpp50 static inline bool degenerate_vector(const SkVector& v) { in degenerate_vector()
56 SkVector* normal, SkVector* unitNormal) { in set_normal_unitnormal()
66 static bool set_normal_unitnormal(const SkVector& vec, in set_normal_unitnormal()
68 SkVector* normal, SkVector* unitNormal) { in set_normal_unitnormal()
154 SkVector fFirstNormal, fPrevNormal, fFirstUnitNormal, fPrevUnitNormal;
221 const SkVector& normalAB, const SkVector& unitNormalAB,
222 SkVector* normalBC, SkVector* unitNormalBC);
224 const SkVector& normalAB, const SkVector& unitNormalAB,
225 SkVector* normalCD, SkVector* unitNormalCD);
227 const SkVector& normalAB, const SkVector& unitNormalAB,
[all …]
DSkStrokerPriv.h26 const SkVector& normal,
31 const SkVector& beforeUnitNormal,
33 const SkVector& afterUnitNormal,
DSkGeometry.h41 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent = nullptr);
100 SkVector* tangentOrNull, SkVector* curvatureOrNull);
217 void evalAt(SkScalar t, SkPoint* pos, SkVector* tangent = nullptr) const;
223 SkVector evalTangentAt(SkScalar t) const;
225 void computeAsQuadError(SkVector* err) const;
262 static int BuildUnitArc(const SkVector& start, const SkVector& stop, SkRotationDirection,
DSkLinearBitmapPipeline.cpp208 TranslateMatrixStrategy(SkVector offset) in TranslateMatrixStrategy()
231 ScaleMatrixStrategy(SkVector offset, SkVector scale) in ScaleMatrixStrategy()
257 AffineMatrixStrategy(SkVector offset, SkVector scale, SkVector skew) in AffineMatrixStrategy()
291 SkVector{inverse.getTranslateX(), inverse.getTranslateY()}, in choose_matrix()
292 SkVector{inverse.getScaleX(), inverse.getScaleY()}, in choose_matrix()
293 SkVector{inverse.getSkewX(), inverse.getSkewY()}); in choose_matrix()
297 SkVector{inverse.getTranslateX(), inverse.getTranslateY()}, in choose_matrix()
298 SkVector{inverse.getScaleX(), inverse.getScaleY()}); in choose_matrix()
302 SkVector{inverse.getTranslateX(), inverse.getTranslateY()}); in choose_matrix()
DSkLightingShader.cpp55 const SkVector& invNormRotation, in SkLightingShaderImpl()
119 SkVector fInvNormRotation;
146 const SkVector& invNormRotation) in LightingFP()
267 const SkVector& invNormRotation = lightingFP.invNormRotation(); in onSetData()
284 SkVector fInvNormRotation;
301 const SkVector& invNormRotation() const { return fInvNormRotation; } in invNormRotation()
326 SkVector fInvNormRotation;
615 return new SkLightingShaderImpl(diffuse, normal, lights, SkVector::Make(1.0f, 0.0f), in CreateProc()
706 const SkVector& invNormRotation, in Create()
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/tests/
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()
117 SkVector start = SkEvalQuadTangentAt(&pts[index * 3], 0); in test_quad_tangents()
118 SkVector mid = SkEvalQuadTangentAt(&pts[index * 3], .5f); in test_quad_tangents()
119 SkVector end = SkEvalQuadTangentAt(&pts[index * 3], 1); in test_quad_tangents()
137 SkVector start = conic.evalTangentAt(0); in test_conic_tangents()
138 SkVector mid = conic.evalTangentAt(.5f); in test_conic_tangents()
139 SkVector end = conic.evalTangentAt(1); in test_conic_tangents()
157 SkVector start, mid, end; in test_cubic_tangents()
DRRectInPathTest.cpp58 SkVector v[4]) { in path_contains_rrect_check()
139 const SkVector vec[] = { { rad, rad }, { 0, rad }, { rad, rad }, { 0, rad } }; in test_tricky_radii()
147 SkVector radii[4] = { in test_tricky_radii()
205 SkVector radii[4] = { { l, t }, { r, t }, { r, b }, { l, b } }; in test_9patch_rrect()
225 SkVector rr1_2_radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }; in test_round_rect_basic()
239 SkVector rr2_2_radii[4] = { { halfPoint.fX, halfPoint.fY }, { halfPoint.fX, halfPoint.fY }, in test_round_rect_basic()
254 SkVector rr3_2_radii[4] = { { 5, 5 }, { 5, 5 }, { 5, 5 }, { 5, 5 } }; in test_round_rect_basic()
344 static void set_radii(SkVector radii[4], int index, float rad) { in set_radii()
345 sk_bzero(radii, sizeof(SkVector) * 4); in set_radii()
359 SkVector radii[4]; in test_skbug_3239()
[all …]
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()
66 static const SkVector radii[4] = { { 0, 1 }, { 2, 3 }, { 4, 5 }, { 6, 7 } }; in test_empty()
150 SkVector radii[4] = { { l, t }, { r, t }, { r, b }, { l, b } }; in test_9patch_rrect()
183 SkVector rr1_2_radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }; in test_round_rect_basic()
203 SkVector rr2_2_radii[4] = { { halfPoint.fX, halfPoint.fY }, { halfPoint.fX, halfPoint.fY }, in test_round_rect_basic()
223 SkVector rr3_2_radii[4] = { { 5, 5 }, { 5, 5 }, { 5, 5 }, { 5, 5 } }; in test_round_rect_basic()
385 static const SkVector gRadii[kNumRRects][4] = { in test_round_rect_contains_rect()
517 const SkVector& origUL = orig.radii(SkRRect::kUpperLeft_Corner); \
518 const SkVector& origUR = orig.radii(SkRRect::kUpperRight_Corner); \
[all …]
/external/skia/src/effects/
DSkDropShadowImageFilter.cpp77 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterImageDeprecated()
88 SkVector offsetVec = SkVector::Make(fDx, fDy); in onFilterImageDeprecated()
123 SkVector offsetVec = SkVector::Make(fDx, fDy); in onFilterNodeBounds()
130 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterNodeBounds()
DSkDisplacementMapEffect.cpp59 void computeDisplacement(const SkVector& scale, SkBitmap* dst, in computeDisplacement()
67 const SkVector scaleForColor = SkVector::Make(SkScalarMul(scale.fX, Inv8bit), in computeDisplacement()
69 const SkVector scaleAdj = SkVector::Make(SK_ScalarHalf - SkScalarMul(scale.fX, SK_ScalarHalf), in computeDisplacement()
92 const SkVector& scale, SkBitmap* dst, in computeDisplacement()
122 const SkVector& scale, SkBitmap* dst, in computeDisplacement()
255 SkVector scale = SkVector::Make(fScale, fScale); in onFilterImageDeprecated()
280 SkVector scale = SkVector::Make(fScale, fScale); in onFilterNodeBounds()
337 SkDisplacementMapEffect::ChannelSelectorType yChannelSelector, SkVector scale, in Create()
350 const SkVector& scale() const { return fScale; } in scale()
370 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()
DSkBlurImageFilter.cpp28 static SkVector map_sigma(const SkSize& localSigma, const SkMatrix& ctm) { in map_sigma()
29 SkVector sigma = SkVector::Make(localSigma.width(), localSigma.height()); in map_sigma()
95 SkVector sigma = map_sigma(fSigma, ctx.ctm()); in onFilterImageDeprecated()
196 SkVector sigma = map_sigma(fSigma, ctm); in onFilterNodeBounds()
219 SkVector sigma = map_sigma(fSigma, ctx.ctm()); in filterImageGPUDeprecated()
DSkDiscretePathEffect.cpp16 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) { in Perterb()
17 SkVector normal = tangent; in Perterb()
84 SkVector v; in filterPath()
DSkOffsetImageFilter.cpp28 SkVector vec; in onFilterImageDeprecated()
55 SkVector vec; in onFilterImageDeprecated()
76 SkVector vec; in onFilterNodeBounds()
/external/skia/gm/
Dimagefiltersscaled.cpp95 SkVector scales[] = { in onDraw()
96 SkVector::Make(SkScalarInvert(2), SkScalarInvert(2)), in onDraw()
97 SkVector::Make(SkIntToScalar(1), SkIntToScalar(1)), in onDraw()
98 SkVector::Make(SkIntToScalar(1), SkIntToScalar(2)), in onDraw()
99 SkVector::Make(SkIntToScalar(2), SkIntToScalar(1)), in onDraw()
100 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()
Dimagescalealigned.cpp17 const SkVector vectors[] = { { 1, 0 }, { 0, 1 } }; in onOnceBeforeDraw()
43 SkVector scale; in onDraw()
68 SkVector fVector;
71 static SkImage* MakeImage(const SkVector& vec, SkColor color) { in MakeImage()
/external/skia/src/gpu/
DGrClipMaskManager.h112 SkVector& clipOffset,
129 const SkVector& clipToMaskOffset,
136 const SkVector& clipToMaskOffset,
141 const SkVector& clipToMaskOffset,
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 …]
/external/skia/include/device/xps/
DSkXPSDevice.h64 const SkVector& unitsPerMeter,
65 const SkVector& pixelsPerMeter,
164 SkVector fCurrentUnitsPerMeter;
165 SkVector fCurrentPixelsPerMeter;
305 SkVector* ppuScale,
311 const SkVector& ppuScale,
/external/skia/include/core/
DSkMatrix.h218 void setTranslate(const SkVector& v) { this->setTranslate(v.fX, v.fY); } in setTranslate()
509 void mapVectors(SkVector dst[], const SkVector src[], int count) const;
518 void mapVectors(SkVector vecs[], int count) const { in mapVectors()
522 void mapVector(SkScalar dx, SkScalar dy, SkVector* result) const { in mapVector()
523 SkVector vec = { dx, dy }; in mapVector()
527 SkVector mapVector(SkScalar dx, SkScalar dy) const { in mapVector()
528 SkVector vec = { dx, dy }; in mapVector()
603 SkVector fixedStepInX(SkScalar y) const;
DSkRRect.h200 void setRectRadii(const SkRect& rect, const SkVector radii[4]);
211 const SkVector& radii(Corner corner) const { return fRadii[corner]; } in radii()
218 const SkVector& getSimpleRadii() const { in getSimpleRadii()
321 SkVector fRadii[4];

12345