Home
last modified time | relevance | path

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

123456

/external/skia/bench/
DPatchBench.cpp149 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/gm/
Doccludedrrectblur.cpp66 SkVector dir = { 0, 0 }; in draw_45()
98 SkVector radii[4] = { { 0.0f, 0.0f }, { 0.0f, 0.0f }, { 0.0f, 0.0f }, { 0.0f, 0.0f } }; in draw_45()
99 radii[left] = SkVector::Make(kSize, kSize); in draw_45()
100 radii[right] = SkVector::Make(kSize, kSize); in draw_45()
115 static void draw_45_simple(SkCanvas* canvas, const SkVector& v, in draw_45_simple()
130 static void draw_90(SkCanvas* canvas, const SkVector& v, SkScalar dist, const SkPoint& center) { in draw_90()
149 static void draw_90_simple(SkCanvas* canvas, const SkVector& v, in draw_90_simple()
174 static void draw_30_60(SkCanvas* canvas, SkRRect::Corner corner, const SkVector& v, in draw_30_60()
209 SkVector radii[4] = { { 0.0f, 0.0f }, { 0.0f, 0.0f }, { 0.0f, 0.0f }, { 0.0f, 0.0f } }; in draw_30_60()
210 radii[left] = SkVector::Make(SkIntToScalar(kWidth), SkIntToScalar(kWidth)); in draw_30_60()
[all …]
Dimagefiltersscaled.cpp118 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()
Drrect.cpp25 SkVector radii[4]; in inset0()
45 SkVector radii[4]; in inset1()
61 SkVector radii[4]; in inset2()
89 SkVector radii[4]; in inset3()
146 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 sk_sp<SkImage> MakeImage(const SkVector& vec, SkColor color) { in MakeImage()
/external/skia/src/core/
DSkStrokerPriv.cpp12 static void ButtCapper(SkPath* path, const SkPoint& pivot, const SkVector& normal, in ButtCapper()
17 static void RoundCapper(SkPath* path, const SkPoint& pivot, const SkVector& normal, in RoundCapper()
19 SkVector parallel; in RoundCapper()
28 static void SquareCapper(SkPath* path, const SkPoint& pivot, const SkVector& normal, in SquareCapper()
30 SkVector parallel; in SquareCapper()
45 static bool is_clockwise(const SkVector& before, const SkVector& after) { in is_clockwise()
67 static void HandleInnerJoin(SkPath* inner, const SkPoint& pivot, const SkVector& after) { in HandleInnerJoin()
81 static void BluntJoiner(SkPath* outer, SkPath* inner, const SkVector& beforeUnitNormal, in BluntJoiner()
82 const SkPoint& pivot, const SkVector& afterUnitNormal, in BluntJoiner()
84 SkVector after; in BluntJoiner()
[all …]
DSkLinearBitmapPipeline_matrix.h16 TranslateMatrixStrategy(SkVector offset) in TranslateMatrixStrategy()
39 ScaleMatrixStrategy(SkVector offset, SkVector scale) in ScaleMatrixStrategy()
65 AffineMatrixStrategy(SkVector offset, SkVector scale, SkVector skew) in AffineMatrixStrategy()
90 PerspectiveMatrixStrategy(SkVector offset, SkVector scale, SkVector skew, in PerspectiveMatrixStrategy()
91 SkVector zSkew, SkScalar zOffset) in PerspectiveMatrixStrategy()
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()
156 SkVector fFirstNormal, fPrevNormal, fFirstUnitNormal, fPrevUnitNormal;
223 const SkVector& normalAB, const SkVector& unitNormalAB,
224 SkVector* normalBC, SkVector* unitNormalBC);
226 const SkVector& normalAB, const SkVector& unitNormalAB,
227 SkVector* normalCD, SkVector* unitNormalCD);
229 const SkVector& normalAB, const SkVector& unitNormalAB,
[all …]
DSkStrokerPriv.h25 const SkVector& normal,
30 const SkVector& beforeUnitNormal,
32 const SkVector& afterUnitNormal,
DSkGeometry.h41 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent = nullptr);
100 SkVector* tangentOrNull, SkVector* curvatureOrNull);
230 void evalAt(SkScalar t, SkPoint* pos, SkVector* tangent = nullptr) const;
236 SkVector evalTangentAt(SkScalar t) const;
238 void computeAsQuadError(SkVector* err) const;
275 static int BuildUnitArc(const SkVector& start, const SkVector& stop, SkRotationDirection,
/external/skia/src/utils/
DSkInsetConvexPolygon.cpp21 SkVector v0 = s1 - s0; in compute_side()
22 SkVector v1 = p - s0; in compute_side()
56 SkVector perp = SkVector::Make(p0.fY - p1.fY, p1.fX - p0.fX); in SkOffsetSegment()
77 SkVector dP = outerTangentIntersect - p0; in SkOffsetSegment()
99 SkVector v0 = s0.fP1 - s0.fP0; in compute_intersection()
100 SkVector v1 = s1.fP1 - s1.fP0; in compute_intersection()
122 SkVector d = s1.fP0 - s0.fP0; in compute_intersection()
145 SkVector v0 = poly[0] - poly[poly.count() - 1]; in is_convex()
146 SkVector v1 = poly[1] - poly[poly.count() - 1]; in is_convex()
153 SkVector v0 = poly[j] - poly[i]; in is_convex()
[all …]
DSkShadowTessellator.cpp57 bool addArc(const SkVector& nextNormal, bool finishArc);
80 SkVector fFirstOutset;
92 SkVector fPrevOutset;
97 SkVector* newNormal) { in compute_normal()
98 SkVector normal; in compute_normal()
110 static void compute_radial_steps(const SkVector& v1, const SkVector& v2, SkScalar r, in compute_radial_steps()
240 bool SkBaseShadowTessellator::addArc(const SkVector& nextNormal, bool finishArc) { in addArc()
245 SkVector prevNormal = fPrevOutset; in addArc()
247 SkVector currNormal; in addArc()
345 void addEdge(const SkVector& nextPoint, const SkVector& nextNormal);
[all …]
DSkShadowUtils.cpp89 SkVector fOffset;
91 bool isCompatible(const AmbientVerticesFactory& that, SkVector* translate) const { in isCompatible()
100 SkVector* translate) const { in makeVertices()
125 SkVector fOffset;
132 bool isCompatible(const SpotVerticesFactory& that, SkVector* translate) const { in isCompatible()
158 SkVector* translate) const { in makeVertices()
191 SkVector* translate) const { in find()
196 const SkMatrix& matrix, SkVector* translate) { in add()
201 SkVector* translate) const { in find()
206 const SkMatrix& matrix, SkVector* translate) { in add()
[all …]
/external/skia/tests/
DGeometryTest.cpp63 SkVector v0; in test_evalquadat()
65 SkVector v1 = SkEvalQuadTangentAt(pts, t); in test_evalquadat()
81 SkVector v0, v1; in test_conic_eval_tan()
118 SkVector start = SkEvalQuadTangentAt(&pts[index * 3], 0); in test_quad_tangents()
119 SkVector mid = SkEvalQuadTangentAt(&pts[index * 3], .5f); in test_quad_tangents()
120 SkVector end = SkEvalQuadTangentAt(&pts[index * 3], 1); in test_quad_tangents()
138 SkVector start = conic.evalTangentAt(0); in test_conic_tangents()
139 SkVector mid = conic.evalTangentAt(.5f); in test_conic_tangents()
140 SkVector end = conic.evalTangentAt(1); in test_conic_tangents()
197 SkVector start, mid, end; in test_cubic_tangents()
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 …]
DRRectInPathTest.cpp80 SkVector v[4], SkPath::Direction dir, unsigned start) { in path_contains_rrect_check()
180 const SkVector vec[] = { { rad, rad }, { 0, rad }, { rad, rad }, { 0, rad } }; in test_tricky_radii()
188 SkVector radii[4] = { in test_tricky_radii()
258 SkVector radii[4] = { { l, t }, { r, t }, { r, b }, { l, b } }; in test_9patch_rrect()
281 SkVector rr1_2_radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }; in test_round_rect_basic()
295 SkVector rr2_2_radii[4] = { { halfPoint.fX, halfPoint.fY }, in test_round_rect_basic()
312 SkVector rr3_2_radii[4] = { { 5, 5 }, { 5, 5 }, { 5, 5 }, { 5, 5 } }; in test_round_rect_basic()
420 static void set_radii(SkVector radii[4], int index, float rad) { in set_radii()
421 sk_bzero(radii, sizeof(SkVector) * 4); in set_radii()
437 SkVector radii[4]; in test_skbug_3239()
[all …]
DInsetConvexPolyTest.cpp15 SkVector v0 = poly[0] - poly[poly.count() - 1]; in is_convex()
16 SkVector v1 = poly[1] - poly[poly.count() - 1]; in is_convex()
23 SkVector v0 = poly[j] - poly[i]; in is_convex()
24 SkVector v1 = poly[k] - poly[i]; in is_convex()
/external/skia/src/effects/
DSkDropShadowImageFilter.cpp89 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterImage()
99 SkVector offsetVec = SkVector::Make(fDx, fDy); in onFilterImage()
141 SkVector offsetVec = SkVector::Make(fDx, fDy); in onFilterNodeBounds()
148 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterNodeBounds()
DSkDisplacementMapEffect.cpp71 void computeDisplacement(Extractor ex, const SkVector& scale, SkBitmap* dst, in computeDisplacement()
78 const SkVector scaleForColor = SkVector::Make(scale.fX * Inv8bit, scale.fY * Inv8bit); in computeDisplacement()
79 const SkVector scaleAdj = SkVector::Make(SK_ScalarHalf - scale.fX * SK_ScalarHalf, in computeDisplacement()
169 SkDisplacementMapEffect::ChannelSelectorType yChannelSelector, SkVector scale, in Make()
188 const SkVector& scale() const { return fScale; } in scale()
203 const SkVector& scale,
218 SkVector fScale;
272 SkVector scale = SkVector::Make(fScale, fScale); in onFilterImage()
383 SkVector scale = SkVector::Make(fScale, fScale); in onFilterNodeBounds()
450 const SkVector& scale, in GrDisplacementMapEffect()
[all …]
DSkRRectsGaussianEdgeMaskFilter.cpp61 SkVector delta = { SkTAbs(p.fX - rr.rect().centerX()), SkTAbs(p.fY - rr.rect().centerY()) }; in compute_rrect_normalized_dist()
67 const SkVector& radii = rr.getSimpleRadii(); in compute_rrect_normalized_dist()
79 SkVector v = { 1.0f - SkTPin(xDist, 0.0f, 1.0f), 1.0f - SkTPin(yDist, 0.0f, 1.0f) }; in compute_rrect_normalized_dist()
97 SkVector coneBottom = { halfW - insetDist, halfH - insetDist }; in compute_rrect_normalized_dist()
98 SkVector ptInConeSpace = delta - coneBottom; in compute_rrect_normalized_dist()
100 SkVector cornerTop = { halfW - radii.fX - coneBottom.fX, halfH - coneBottom.fY }; in compute_rrect_normalized_dist()
101 SkVector cornerRight = { halfW - coneBottom.fX, halfH - radii.fY - coneBottom.fY }; in compute_rrect_normalized_dist()
114 SkVector cornerCenterInConeSpace = { insetDist - radii.fX, insetDist - radii.fY }; in compute_rrect_normalized_dist()
116 SkVector connectingVec = ptInConeSpace - cornerCenterInConeSpace; in compute_rrect_normalized_dist()
171 SkVector vec; in filterMask()
[all …]
DSkEmbossMaskFilter.cpp92 matrix.mapVectors((SkVector*)(void*)light.fDirection, in filterMask()
93 (SkVector*)(void*)fLight.fDirection, 1); in filterMask()
97 SkVector* vec = (SkVector*)(void*)light.fDirection; in filterMask()
/external/skia/src/xps/
DSkXPSDevice.h65 const SkVector& unitsPerMeter,
66 const SkVector& pixelsPerMeter,
132 SkVector fCurrentUnitsPerMeter;
133 SkVector fCurrentPixelsPerMeter;
269 SkVector* ppuScale,
274 const SkVector& ppuScale,
DSkXPSDocument.h36 SkVector fUnitsPerMeter;
37 SkVector fPixelsPerMeter;
/external/skia/include/core/
DSkRRect.h209 void setRectRadii(const SkRect& rect, const SkVector radii[4]);
220 const SkVector& radii(Corner corner) const { return fRadii[corner]; } in radii()
227 const SkVector& getSimpleRadii() const { in getSimpleRadii()
332 SkRRect(const SkRect& rect, const SkVector radii[4], int32_t type) in SkRRect()
339 SkVector fRadii[4];
DSkMatrix.h220 void setTranslate(const SkVector& v) { this->setTranslate(v.fX, v.fY); } in setTranslate()
510 void mapVectors(SkVector dst[], const SkVector src[], int count) const;
519 void mapVectors(SkVector vecs[], int count) const { in mapVectors()
523 void mapVector(SkScalar dx, SkScalar dy, SkVector* result) const { in mapVector()
524 SkVector vec = { dx, dy }; in mapVector()
528 SkVector mapVector(SkScalar dx, SkScalar dy) const { in mapVector()
529 SkVector vec = { dx, dy }; in mapVector()
610 SkVector fixedStepInX(SkScalar y) const;

123456