Home
last modified time | relevance | path

Searched refs:fPoints (Results 1 – 25 of 51) sorted by relevance

123

/external/skia/samplecode/
DSampleStrokeVerb.cpp56 SkPoint fPoints[4] = { member in CCPRGeometryView
82 caption.appendf(" (%s)", SkCubicTypeName(SkClassifyCubic(fPoints))); in onDrawContent()
95 canvas->drawPoints(SkCanvas::kPoints_PointMode, 4, fPoints, pointsPaint); in onDrawContent()
97 canvas->drawPoints(SkCanvas::kPoints_PointMode, 2, fPoints, pointsPaint); in onDrawContent()
98 canvas->drawPoints(SkCanvas::kPoints_PointMode, 1, fPoints + 3, pointsPaint); in onDrawContent()
109 fPath.moveTo(fPoints[0]); in updatePath()
112 fPath.cubicTo(fPoints[1], fPoints[2], fPoints[3]); in updatePath()
115 fPath.quadTo(fPoints[1], fPoints[3]); in updatePath()
118 fPath.conicTo(fPoints[1], fPoints[3], fConicWeight); in updatePath()
121 fPath.lineTo(fPoints[1]); in updatePath()
[all …]
DSampleSimpleStroker.cpp37 return SkPath::Make(fPoints.data(), fPoints.size(), fVerbs.data(), fVerbs.size(), nullptr, in getPath()
43 fPoints.push_back(p); in moveTo()
48 fPoints.push_back(p); in lineTo()
55 fPoints.clear(); in rewind()
58 int countPoints() const { return fPoints.size(); } in countPoints()
63 if (fPoints.empty()) { in getLastPt()
66 *lastPt = fPoints.back(); in getLastPt()
71 if (fPoints.empty()) { in setLastPt()
74 fPoints.back().set(lastPt.fX, lastPt.fY); in setLastPt()
80 const std::vector<SkPoint>& points() const { return fPoints; } in points()
[all …]
DSampleVariableWidthStroker.cpp442 std::array<SkPoint, 4> fPoints; member
528 fOuter.moveTo(strokes.fOuter.front().fPoints[0]); in getFillPath()
529 fInner.moveTo(strokes.fInner.front().fPoints[0]); in getFillPath()
533 fOuter.quadTo(seg.fPoints[1], seg.fPoints[2]); in getFillPath()
537 fInner.quadTo(seg.fPoints[1], seg.fPoints[2]); in getFillPath()
559 while ((segment.fVerb = it.next(&segment.fPoints[0])) != SkPath::kDone_Verb) { in getFillPath()
596 join(segment.fPoints[0], innerRadius, outerRadius, prevOffsetSegs, offsetSegs); in getFillPath()
654 fSegX[i] = seg.fPoints[i].fX; in strokeSegment()
655 fSegY[i] = seg.fPoints[i].fY; in strokeSegment()
681 quadApproxX[i] = quadApprox.fPoints[i].fX; in strokeSegment()
[all …]
/external/skqp/bench/
DGrCCFillGeometryBench.cpp19 fPoints[0].set(x0, y0); in GrCCGeometryBench()
20 fPoints[1].set(x1, y1); in GrCCGeometryBench()
21 fPoints[2].set(x2, y2); in GrCCGeometryBench()
22 fPoints[3].set(x3, y3); in GrCCGeometryBench()
23 fPoints[4].set(x0, y0); // Flat closing edge. in GrCCGeometryBench()
26 switch (SkClassifyCubic(fPoints)) { in GrCCGeometryBench()
51 fGeometry.beginContour(fPoints[0]); in onDraw()
53 fGeometry.cubicTo(fPoints); in onDraw()
54 fGeometry.lineTo(fPoints+3); in onDraw()
62 SkPoint fPoints[5]; member in GrCCGeometryBench
DCubicKLMBench.cpp17 fPoints[0].set(x0, y0); in CubicKLMBench()
18 fPoints[1].set(x1, y1); in CubicKLMBench()
19 fPoints[2].set(x2, y2); in CubicKLMBench()
20 fPoints[3].set(x3, y3); in CubicKLMBench()
23 switch (SkClassifyCubic(fPoints)) { in CubicKLMBench()
49 GrPathUtils::chopCubicAtLoopIntersection(fPoints, dst, &klm, &loopIdx); in onDraw()
54 SkPoint fPoints[4]; member in CubicKLMBench
DPathBench.cpp324 fPoints.reset(kNumPoints); in createData()
326 fPoints[i].set(fRandom.nextRangeScalar(bounds->fLeft, bounds->fRight), in createData()
344 path->moveTo(fPoints[(fCurrPoint++) & (kNumPoints - 1)]); in makePath()
347 path->lineTo(fPoints[(fCurrPoint++) & (kNumPoints - 1)]); in makePath()
350 path->quadTo(fPoints[(fCurrPoint + 0) & (kNumPoints - 1)], in makePath()
351 fPoints[(fCurrPoint + 1) & (kNumPoints - 1)]); in makePath()
355 path->conicTo(fPoints[(fCurrPoint + 0) & (kNumPoints - 1)], in makePath()
356 fPoints[(fCurrPoint + 1) & (kNumPoints - 1)], in makePath()
361 path->cubicTo(fPoints[(fCurrPoint + 0) & (kNumPoints - 1)], in makePath()
362 fPoints[(fCurrPoint + 1) & (kNumPoints - 1)], in makePath()
[all …]
/external/skqp/samplecode/
DSampleCCPRGeometry.cpp64 SkPoint fPoints[4] = { member in CCPRGeometryView
229 canvas->drawPoints(SkCanvas::kPoints_PointMode, 4, fPoints, pointsPaint); in onDrawContent()
237 canvas->drawPoints(SkCanvas::kPoints_PointMode, 2, fPoints, pointsPaint); in onDrawContent()
238 canvas->drawPoints(SkCanvas::kPoints_PointMode, 1, fPoints + 3, pointsPaint); in onDrawContent()
253 fPath.moveTo(fPoints[0]); in updateGpuData()
257 fCubicType = GrPathUtils::getCubicKLM(fPoints, &fCubicKLM, t, s); in updateGpuData()
259 geometry.beginContour(fPoints[0]); in updateGpuData()
260 geometry.cubicTo(fPoints, kDebugBloat / 2, kDebugBloat / 2); in updateGpuData()
279 fPath.cubicTo(fPoints[1], fPoints[2], fPoints[3]); in updateGpuData()
281 SkPoint P3[3] = {fPoints[0], fPoints[1], fPoints[3]}; in updateGpuData()
[all …]
/external/skia/src/core/
DSkPathRef.cpp52 fPathRef->fPoints.shrinkToFit(); in shrinkToFit()
62 + fPoints .reserved() * sizeof(fPoints [0]) in approximateBytesUsed()
170 (*dst)->fPoints.setCount(src.fPoints.count()); in CreateTransformedCopy()
172 matrix.mapPoints((*dst)->fPoints.begin(), src.fPoints.begin(), src.fPoints.count()); in CreateTransformedCopy()
230 (*pathRef)->fPoints.rewind(); in Rewind()
262 if (fPoints != ref.fPoints || fConicWeights != ref.fConicWeights || fVerbs != ref.fVerbs) { in operator ==()
267 SkASSERT(ref.fPoints.count() == 0); in operator ==()
290 buffer->write32(fPoints.count()); in writeToBuffer()
293 buffer->write(fPoints.begin(), fVerbs.bytes()); in writeToBuffer()
302 fVerbs.bytes() + fPoints.bytes() + fConicWeights.bytes() + in writeSize()
[all …]
DSkEdgeClipper.cpp49 fCurrPoint = fPoints; in clipLine()
60 fCurrPoint = fPoints; in clipLine()
222 fCurrPoint = fPoints; in clipQuad()
237 SkASSERT(fCurrPoint - fPoints <= kMaxPoints); in clipQuad()
243 fCurrPoint = fPoints; in clipQuad()
418 fCurrPoint = fPoints; in clipCubic()
441 SkASSERT(fCurrPoint - fPoints <= kMaxPoints); in clipCubic()
448 fCurrPoint = fPoints; in clipCubic()
/external/skia/src/gpu/tessellate/
DGrMidpointContourParser.h29 , fPoints(SkPathPriv::PointData(fPath)) in GrMidpointContourParser()
39 fMidpoint = fPoints[fPtsIdx]; in parseNextContour()
61 fMidpoint += fPoints[fPtsIdx - 1]; in parseNextContour()
70 return SkPathPriv::Iterate(fVerbs, fVerbs + fVerbsIdx, fPoints, fWeights); in currentContour()
80 fPoints += fPtsIdx; in advance()
92 const SkPoint* fPoints; variable
/external/skia/include/private/
DSkPathRef.h69 : fPoints(std::move(points)) in SkPathRef()
105 const SkPoint* atPoint(int i) const { return &fPathRef->fPoints[i]; } in atPoint()
300 int countPoints() const { return fPoints.count(); } in countPoints()
319 const SkPoint* points() const { return fPoints.begin(); } in points()
333 const SkPoint& atPoint(int index) const { return fPoints[index]; } in atPoint()
414 fPoints.setReserve(fPoints.count() + additionalPoints); in incReserve()
432 fPoints.setReserve(pointCount + reservePoints);
433 fPoints.setCount(pointCount);
490 return fPoints.begin(); in getWritablePoints()
495 return fPoints.begin(); in getPoints()
[all …]
/external/skqp/include/private/
DSkPathRef.h268 const SkPoint* points() const { return fPoints; } in points()
351 fPoints = nullptr; in SkPathRef()
419 sk_free(fPoints);
420 fPoints = nullptr;
486 fPoints = reinterpret_cast<SkPoint*>(sk_realloc_throw(fPoints, newSize));
488 void* newVerbsDst = SkTAddOffset<void>(fPoints, newSize - oldVerbSize);
489 void* oldVerbsSrc = SkTAddOffset<void>(fPoints, oldSize - oldVerbSize);
491 fVerbs = SkTAddOffset<uint8_t>(fPoints, newSize);
508 return reinterpret_cast<intptr_t>(fVerbs) - reinterpret_cast<intptr_t>(fPoints); in currSize()
533 return fPoints; in getPoints()
[all …]
/external/skqp/src/gpu/ccpr/
DGrCCStrokeGeometry.cpp97 fCurrContourFirstPtIdx = fPoints.count(); in moveTo()
99 fPoints.push_back(pt); in moveTo()
109 Sk2f tan = Sk2f::Load(&pt) - Sk2f::Load(&fPoints.back()); in lineTo()
121 fPoints.push_back(pt); in lineTo()
228 p1.store(&fPoints.push_back()); in quadraticTo()
229 p2.store(&fPoints.push_back()); in quadraticTo()
383 p1.store(&fPoints.push_back()); in cubicTo()
384 p2.store(&fPoints.push_back()); in cubicTo()
385 p3.store(&fPoints.push_back()); in cubicTo()
513 SkASSERT(fPoints.count() > fCurrContourFirstPtIdx); in closeContour()
[all …]
DGrCCFillGeometry.cpp29 fPoints.push_back(pt); in beginContour()
38 SkASSERT(P[0] == fPoints.back()); in lineTo()
45 SkASSERT(fPoints.back() == SkPoint::Make(p0[0], p0[1])); in appendLine()
49 p1.store(&fPoints.push_back()); in appendLine()
138 SkASSERT(P[0] == fPoints.back()); in quadraticTo()
199 SkASSERT(fPoints.back() == SkPoint::Make(p0[0], p0[1])); in appendMonotonicQuadratic()
201 p1.store(&fPoints.push_back()); in appendMonotonicQuadratic()
202 p2.store(&fPoints.push_back()); in appendMonotonicQuadratic()
466 SkASSERT(P[0] == fPoints.back()); in cubicTo()
619 SkASSERT(fPoints.back() == SkPoint::Make(p0[0], p0[1])); in appendCubics()
[all …]
DGrCCFillGeometry.h53 : fPoints(numSkPoints * 3) // Reserve for a 3x expansion in points and verbs.
57 const SkTArray<SkPoint, true>& points() const { SkASSERT(!fBuildingContour); return fPoints; } in points()
63 fPoints.reset(); in reset()
116 SkSTArray<128, SkPoint, true> fPoints; variable
DGrCCStrokeGeometry.h30 , fPoints(numSkPoints * 5/4) // Reserve for a 1.25x expansion in points and normals.
77 const SkTArray<SkPoint, true>& points() const { SkASSERT(!fInsideContour); return fPoints; } in points()
145 SkSTArray<128, SkPoint, true> fPoints; variable
/external/skqp/src/core/
DSkPathRef.cpp73 sk_careful_memcpy(newAlloc, fPathRef->fPoints, ptsSize); in shrinkToFit()
76 sk_free(fPathRef->fPoints); in shrinkToFit()
77 fPathRef->fPoints = static_cast<SkPoint*>(newAlloc); in shrinkToFit()
97 sk_free(fPoints); in ~SkPathRef()
99 SkDEBUGCODE(fPoints = nullptr;) in ~SkPathRef()
205 matrix.mapPoints((*dst)->fPoints, src.points(), src.fPointCnt); in CreateTransformedCopy()
363 !buffer->read(ref->fPoints, pointSize) || in CreateFromBuffer()
487 buffer->write(fPoints, fPointCnt * sizeof(SkPoint)); in writeToBuffer()
509 sk_careful_memcpy(this->fPoints, ref.fPoints, ref.fPointCnt * sizeof(SkPoint)); in copy()
596 SkPoint* ret = fPoints + fPointCnt; in growForRepeatedVerb()
[all …]
DSkEdgeClipper.cpp49 fCurrPoint = fPoints; in clipLine()
60 fCurrPoint = fPoints; in clipLine()
220 fCurrPoint = fPoints; in clipQuad()
235 SkASSERT(fCurrPoint - fPoints <= kMaxPoints); in clipQuad()
241 fCurrPoint = fPoints; in clipQuad()
416 fCurrPoint = fPoints; in clipCubic()
439 SkASSERT(fCurrPoint - fPoints <= kMaxPoints); in clipCubic()
446 fCurrPoint = fPoints; in clipCubic()
/external/dng_sdk/source/
Ddng_gain_map.cpp258 : fPoints (points) in dng_gain_map()
270 ComputeBufferSize (ttFloat, fPoints, fPlanes, pad16Bytes))); in dng_gain_map()
297 return 44 + fPoints.v * fPoints.h * fPlanes * 4; in PutStreamSize()
306 stream.Put_uint32 (fPoints.v); in PutStream()
307 stream.Put_uint32 (fPoints.h); in PutStream()
317 for (int32 rowIndex = 0; rowIndex < fPoints.v; rowIndex++) in PutStream()
320 for (int32 colIndex = 0; colIndex < fPoints.h; colIndex++) in PutStream()
/external/skqp/gm/
Dpolygons.cpp56 SkPoint* fPoints; in onOnceBeforeDraw() member
71 fPolygons.push_back().moveTo(pgs[pgIndex].fPoints[0].fX, in onOnceBeforeDraw()
72 pgs[pgIndex].fPoints[0].fY); in onOnceBeforeDraw()
74 fPolygons.back().lineTo(pgs[pgIndex].fPoints[ptIndex].fX, in onOnceBeforeDraw()
75 pgs[pgIndex].fPoints[ptIndex].fY); in onOnceBeforeDraw()
/external/skia/gm/
Dpolygons.cpp62 SkPoint* fPoints; in onOnceBeforeDraw() member
78 b.moveTo(pgs[pgIndex].fPoints[0].fX, in onOnceBeforeDraw()
79 pgs[pgIndex].fPoints[0].fY); in onOnceBeforeDraw()
81 b.lineTo(pgs[pgIndex].fPoints[ptIndex].fX, in onOnceBeforeDraw()
82 pgs[pgIndex].fPoints[ptIndex].fY); in onOnceBeforeDraw()
/external/skqp/include/core/
DSkPathEffect.h78 , fPoints(nullptr) in PointData()
85 delete [] fPoints; in ~PointData()
100 SkPoint* fPoints; // the center point of each generated point variable
/external/skia/include/core/
DSkPathEffect.h72 , fPoints(nullptr) in PointData()
79 delete [] fPoints; in ~PointData()
94 SkPoint* fPoints; // the center point of each generated point variable
/external/skia/modules/svg/src/
DSkSVGPoly.cpp24 fPoints.begin(), fPoints.count(), in parseAndSetAttribute()
/external/skia/bench/
DPathBench.cpp326 fPoints.reset(kNumPoints); in createData()
328 fPoints[i].set(fRandom.nextRangeScalar(bounds->fLeft, bounds->fRight), in createData()
346 path->moveTo(fPoints[(fCurrPoint++) & (kNumPoints - 1)]); in makePath()
349 path->lineTo(fPoints[(fCurrPoint++) & (kNumPoints - 1)]); in makePath()
352 path->quadTo(fPoints[(fCurrPoint + 0) & (kNumPoints - 1)], in makePath()
353 fPoints[(fCurrPoint + 1) & (kNumPoints - 1)]); in makePath()
357 path->conicTo(fPoints[(fCurrPoint + 0) & (kNumPoints - 1)], in makePath()
358 fPoints[(fCurrPoint + 1) & (kNumPoints - 1)], in makePath()
363 path->cubicTo(fPoints[(fCurrPoint + 0) & (kNumPoints - 1)], in makePath()
364 fPoints[(fCurrPoint + 1) & (kNumPoints - 1)], in makePath()
[all …]

123