Home
last modified time | relevance | path

Searched refs:fPaths (Results 1 – 21 of 21) sorted by relevance

/external/skia/gm/
Dconvexpaths.cpp53 fPaths.push_back().moveTo(0, 0); in makePaths()
54 fPaths.back().quadTo(50 * SK_Scalar1, 100 * SK_Scalar1, in makePaths()
56 fPaths.back().lineTo(0, 0); in makePaths()
58 fPaths.push_back().moveTo(0, 50 * SK_Scalar1); in makePaths()
59 fPaths.back().quadTo(50 * SK_Scalar1, 0, in makePaths()
61 fPaths.back().quadTo(50 * SK_Scalar1, 100 * SK_Scalar1, in makePaths()
64 fPaths.push_back().addRect(0, 0, in makePaths()
68 fPaths.push_back().addRect(0, 0, in makePaths()
72 fPaths.push_back().addCircle(50 * SK_Scalar1, 50 * SK_Scalar1, in makePaths()
76 fPaths.push_back().addOval(SkRect::MakeXYWH(0, 0, in makePaths()
[all …]
Dpath_stroke_with_zero_length.cpp15 SkPath fPaths[8]; member in StrokeZeroGM
40 fPaths[0].moveTo(30, 0); // single line segment in onOnceBeforeDraw()
41 fPaths[0].rLineTo(30, 0); in onOnceBeforeDraw()
43 fPaths[1].moveTo(90, 0); // single line segment with close (does not draw caps) in onOnceBeforeDraw()
44 fPaths[1].rLineTo(30, 0); in onOnceBeforeDraw()
45 fPaths[1].close(); in onOnceBeforeDraw()
47 fPaths[2].moveTo(150, 0); // zero-length line in onOnceBeforeDraw()
48 fPaths[2].rLineTo(0, 0); in onOnceBeforeDraw()
50 fPaths[3].moveTo(180, 0); // zero-length line with close (expected not to draw) in onOnceBeforeDraw()
51 fPaths[3].rLineTo(0, 0); in onOnceBeforeDraw()
[all …]
Dhairlines.cpp27 SkPath* lineAnglesPath = &fPaths.push_back(); in onOnceBeforeDraw()
42 SkPath* kindaTightQuad = &fPaths.push_back(); in onOnceBeforeDraw()
48 SkPath* tightQuad = &fPaths.push_back(); in onOnceBeforeDraw()
54 SkPath* tighterQuad = &fPaths.push_back(); in onOnceBeforeDraw()
60 SkPath* unevenTighterQuad = &fPaths.push_back(); in onOnceBeforeDraw()
68 SkPath* reallyTightQuad = &fPaths.push_back(); in onOnceBeforeDraw()
74 SkPath* closedQuad = &fPaths.push_back(); in onOnceBeforeDraw()
80 SkPath* unevenClosedQuad = &fPaths.push_back(); in onOnceBeforeDraw()
89 SkPath* problem1 = &fPaths.push_back(); in onOnceBeforeDraw()
98 SkPath* problem2 = &fPaths.push_back(); in onOnceBeforeDraw()
[all …]
Dconicpaths.cpp27 SkPath* conicCirlce = &fPaths.push_back(); in onOnceBeforeDraw()
36 SkPath* hyperbola = &fPaths.push_back(); in onOnceBeforeDraw()
41 SkPath* thinHyperbola = &fPaths.push_back(); in onOnceBeforeDraw()
46 SkPath* veryThinHyperbola = &fPaths.push_back(); in onOnceBeforeDraw()
51 SkPath* closedHyperbola = &fPaths.push_back(); in onOnceBeforeDraw()
57 SkPath* nearParabola = &fPaths.push_back(); in onOnceBeforeDraw()
62 SkPath* thinEllipse = &fPaths.push_back(); in onOnceBeforeDraw()
67 SkPath* veryThinEllipse = &fPaths.push_back(); in onOnceBeforeDraw()
72 SkPath* closedEllipse = &fPaths.push_back(); in onOnceBeforeDraw()
99 for (int p = 0; p < fPaths.count(); ++p) { in onDraw()
[all …]
Dstlouisarch.cpp26 SkPath* bigQuad = &fPaths.push_back(); in onOnceBeforeDraw()
32 SkPath* degenBigQuad = &fPaths.push_back(); in onOnceBeforeDraw()
40 SkPath* bigCubic = &fPaths.push_back(); in onOnceBeforeDraw()
48 SkPath* degenBigCubic = &fPaths.push_back(); in onOnceBeforeDraw()
57 SkPath* bigConic = &fPaths.push_back(); in onOnceBeforeDraw()
63 SkPath* degenBigConic = &fPaths.push_back(); in onOnceBeforeDraw()
74 for (int p = 0; p < fPaths.count(); ++p) { in onDraw()
80 canvas->drawPath(fPaths[p], paint); in onDraw()
89 SkTArray<SkPath> fPaths; member in skiagm::StLouisArchGM
Dcomplexclip2.cpp63 fPaths[0].addRoundRect(fRects[0], 5, 5); in onOnceBeforeDraw()
68 fPaths[1].addRoundRect(fRects[1], 5, 5); in onOnceBeforeDraw()
73 fPaths[2].addRoundRect(fRects[2], 5, 5); in onOnceBeforeDraw()
78 fPaths[3].addRoundRect(fRects[3], 5, 5); in onOnceBeforeDraw()
83 fPaths[4].addRoundRect(fRects[4], 5, 5); in onOnceBeforeDraw()
167 canvas->drawPath(fPaths[k], rectPaint); in onDraw()
185 canvas->clipPath(fPaths[k], in onDraw()
201 SkPath fPaths[5]; member in skiagm::ComplexClip2GM
Dconvexpolyeffect.cpp106 fPaths.addToTail(tri); in onOnceBeforeDraw()
107 fPaths.addToTail(SkPath())->reverseAddPath(tri); in onOnceBeforeDraw()
110 fPaths.addToTail(tri); in onOnceBeforeDraw()
128 fPaths.addToTail(ngon); in onOnceBeforeDraw()
132 fPaths.addToTail(ngon); in onOnceBeforeDraw()
137 fPaths.addToTail(linePath); in onOnceBeforeDraw()
165 for (PathList::Iter iter(fPaths, PathList::Iter::kHead_IterStart); in onDraw()
251 PathList fPaths; member in skiagm::ConvexPolyEffect
/external/skia/samplecode/
DSamplePathFinder.cpp57 fPaths.push_back() = {path, paint, this->getTotalMatrix()}; in onDrawPath()
82 SkTSwap(fPaths, fTossedPaths); in handleKeystroke()
92 if (fPaths.count() > 1) { in handleKeystroke()
93 int midpt = (fPaths.count() + 1) / 2; in handleKeystroke()
94 fPathHistory.emplace(fPaths, fTossedPaths); in handleKeystroke()
95 fTossedPaths.reset(fPaths.begin() + midpt, fPaths.count() - midpt); in handleKeystroke()
96 fPaths.resize_back(midpt); in handleKeystroke()
103 fPaths = fPathHistory.top().first; in handleKeystroke()
124 for (const FoundPath& foundPath : fPaths) { in handleKeystroke()
133 for (const FoundPath& path : fPaths) { in onDrawContent()
[all …]
/external/skia/src/gpu/ops/
DGrAALinearizingConvexPathRenderer.cpp138 for (const auto& path : fPaths) { in dumpInfo()
158 fPaths.emplace_back( in AAFlatteningConvexPathOp()
177 color->setToConstant(fPaths[0].fColor); in getFragmentProcessorAnalysisInputs()
182 optimizations.getOverrideColorIfSet(&fPaths[0].fColor); in applyPipelineOptimizations()
233 int instanceCount = fPaths.count(); in onPrepareDraws()
242 const PathData& args = fPaths[i]; in onPrepareDraws()
298 fPaths.push_back_n(that->fPaths.count(), that->fPaths.begin()); in onCombineIfPossible()
305 const SkMatrix& viewMatrix() const { return fPaths[0].fViewMatrix; } in viewMatrix()
319 SkSTArray<1, PathData, true> fPaths; member in AAFlatteningConvexPathOp
DGrDefaultPathRenderer.cpp112 string.appendf("Color: 0x%08x Count: %d\n", fColor, fPaths.count()); in dumpInfo()
113 for (const auto& path : fPaths) { in dumpInfo()
129 fPaths.emplace_back(PathData{path, tolerance}); in DefaultPathOp()
161 int instanceCount = fPaths.count(); in onPrepareDraws()
169 const PathData& args = fPaths[i]; in onPrepareDraws()
231 const PathData& args = fPaths[i]; in onPrepareDraws()
289 fPaths.push_back_n(that->fPaths.count(), that->fPaths.begin()); in onCombineIfPossible()
404 SkSTArray<1, PathData, true> fPaths; member in DefaultPathOp
DGrMSAAPathRenderer.cpp242 for (const auto& path : fPaths) { in dumpInfo()
258 fPaths.emplace_back(PathInfo{color, path}); in MSAAPathOp()
264 color->setToConstant(fPaths[0].fColor); in getFragmentProcessorAnalysisInputs()
269 optimizations.getOverrideColorIfSet(&fPaths[0].fColor); in applyPipelineOptimizations()
382 for (int i = 0; i < fPaths.count(); i++) { in onPrepareDraws()
383 const PathInfo& pathInfo = fPaths[i]; in onPrepareDraws()
474 fPaths.push_back_n(that->fPaths.count(), that->fPaths.begin()); in onCombineIfPossible()
560 SkSTArray<1, PathInfo, true> fPaths; member in MSAAPathOp
DGrAAConvexPathRenderer.cpp737 string.appendf("Color: 0x%08x, Count: %d\n", fColor, fPaths.count()); in dumpInfo()
746 fPaths.emplace_back(PathData{viewMatrix, path}); in AAConvexPathOp()
760 fLinesOnly = SkPath::kLine_SegmentMask == fPaths[0].fPath.getSegmentMasks(); in applyPipelineOptimizations()
783 int instanceCount = fPaths.count(); in prepareLinesOnlyDraws()
788 const PathData& args = fPaths[i]; in prepareLinesOnlyDraws()
832 int instanceCount = fPaths.count(); in onPrepareDraws()
846 const PathData& args = fPaths[i]; in onPrepareDraws()
941 fPaths.push_back_n(that->fPaths.count(), that->fPaths.begin()); in onCombineIfPossible()
950 const SkMatrix& viewMatrix() const { return fPaths[0].fViewMatrix; } in viewMatrix()
962 SkSTArray<1, PathData, true> fPaths; member in AAConvexPathOp
DGrAAHairLinePathRenderer.cpp695 fPaths.count()); in dumpInfo()
707 fPaths.emplace_back(PathData{viewMatrix, path, devClipBounds}); in AAHairlineOp()
764 fPaths.push_back_n(that->fPaths.count(), that->fPaths.begin()); in onCombineIfPossible()
772 const SkMatrix& viewMatrix() const { return fPaths[0].fViewMatrix; } in viewMatrix()
784 SkSTArray<1, PathData, true> fPaths; member in AAHairlineOp
817 int instanceCount = fPaths.count(); in onPrepareDraws()
819 const PathData& args = fPaths[i]; in onPrepareDraws()
/external/skia/bench/
DAlternatingColorPatternBench.cpp85 SkPath fPaths[NUM_DRAWS]; member in AlternatingColorPatternBench
128 fPaths[count].moveTo(SkIntToScalar(x), SkIntToScalar(y)); in onDelayedSetup()
129 fPaths[count].rLineTo(SkIntToScalar(w), 0); in onDelayedSetup()
130 fPaths[count].rLineTo(0, SkIntToScalar(h)); in onDelayedSetup()
131 fPaths[count].rLineTo(SkIntToScalar(-w + 1), 0); in onDelayedSetup()
157 canvas->drawPath(fPaths[j], paint); in onDraw()
DPathBench.cpp446 fPaths.reset(kPathCnt); in onDelayedSetup()
449 this->makePath(&fPaths[i]); in onDelayedSetup()
456 fCopies[idx] = fPaths[idx]; in onDraw()
465 SkAutoTArray<SkPath> fPaths; member in PathCopyBench
483 fPaths.reset(kPathCnt); in onDelayedSetup()
485 this->makePath(&fPaths[i]); in onDelayedSetup()
496 fPaths[i & (kPathCnt - 1)].transform(fMatrix); in onDraw()
501 fPaths[idx].transform(fMatrix, &fTransformed[idx]); in onDraw()
511 SkAutoTArray<SkPath> fPaths; member in PathTransformBench
531 fPaths.reset(kPathCnt); in onDelayedSetup()
[all …]
/external/skia/src/fonts/
DSkTestScalerContext.cpp28 , fPaths(nullptr) in SkTestFont()
39 delete fPaths[index]; in ~SkTestFont()
41 delete[] fPaths; in ~SkTestFont()
84 fPaths = new SkPath* [fCharCodesCount]; in init()
116 fPaths[index] = path; in init()
142 *path = *fTestFont->fPaths[glyph]; in getPath()
DSkTestScalerContext.h51 SkPath** fPaths; variable
/external/skia/src/core/
DSkPictureData.cpp34 for (int i = 0; i < fPaths.count(); i++) { in initForPlayback()
35 fPaths[i].updateBoundsCache(); in initForPlayback()
51 fPaths.reset(record.fPaths.count()); in SkPictureData()
52 record.fPaths.foreach([this](const SkPath& path, int n) { in SkPictureData()
55 fPaths[n-1] = path; in SkPictureData()
251 if ((n = fPaths.count()) > 0) { in flattenToBuffer()
255 buffer.writePath(fPaths[i]); in flattenToBuffer()
568 fPaths.reset(count); in parseBufferTag()
570 buffer.readPath(&fPaths[i]); in parseBufferTag()
DSkPictureData.h120 return reader->validateIndex(index, fPaths.count()) ? fPaths[index] : fEmptyPath; in getPath()
181 SkTArray<SkPath> fPaths; variable
DSkPictureRecord.cpp860 if (int* n = fPaths.find(path)) { in addPathToHeap()
863 int n = fPaths.count() + 1; // 0 is reserved for null / error. in addPathToHeap()
864 fPaths.set(path, n); in addPathToHeap()
DSkPictureRecord.h267 SkTHashMap<SkPath, int, PathHash> fPaths; variable