Home
last modified time | relevance | path

Searched refs:numPts (Results 1 – 22 of 22) sorted by relevance

/external/skia/gm/
Dpolygonoffset.cpp442 std::unique_ptr<SkPoint[]>* data, int* numPts) { in GetConvexPolygon() argument
445 *numPts = (int)PolygonOffsetData::gConvexSizes[index]; in GetConvexPolygon()
446 *data = std::make_unique<SkPoint[]>(*numPts); in GetConvexPolygon()
448 for (int i = 0; i < *numPts; ++i) { in GetConvexPolygon()
452 for (int i = 0; i < *numPts; ++i) { in GetConvexPolygon()
453 (*data)[i] = PolygonOffsetData::gConvexPoints[index][*numPts - i - 1]; in GetConvexPolygon()
464 *numPts = numPtsArray[arrayIndex]; in GetConvexPolygon()
470 *data = std::make_unique<SkPoint[]>(*numPts); in GetConvexPolygon()
472 create_ngon(*numPts, data->get(), width, height, dir); in GetConvexPolygon()
477 std::unique_ptr<SkPoint[]>* data, int* numPts) { in GetSimplePolygon() argument
[all …]
Dconvex_all_line_paths.cpp189 int numPts; in GetPath() local
193 numPts = (int)ConvexLineOnlyData::gSizes[index]; in GetPath()
200 numPts = 3; in GetPath()
203 numPts = 4; in GetPath()
206 numPts = 5; in GetPath()
209 numPts = 5; in GetPath()
213 numPts = 6; in GetPath()
216 numPts = 8; in GetPath()
219 numPts = 8; in GetPath()
223 numPts = 20; in GetPath()
[all …]
Dtrickycubicstrokes.cpp123 auto [originalPts, numPts, fillMode, scale] = kTrickyCubics[i]; in draw_test()
125 SkASSERT(numPts <= 4); in draw_test()
127 memcpy(p, originalPts, sizeof(SkPoint) * numPts); in draw_test()
128 for (int j = 0; j < numPts; ++j) { in draw_test()
137 if (numPts == 4) { in draw_test()
140 SkASSERT(numPts == 3); in draw_test()
161 if (numPts == 4) { in draw_test()
164 SkASSERT(numPts == 3); in draw_test()
167 SkASSERT(numPts == 3); in draw_test()
/external/skqp/gm/
Dpolygonoffset.cpp430 std::unique_ptr<SkPoint[]>* data, int* numPts) { in GetConvexPolygon() argument
433 *numPts = (int)PolygonOffsetData::gConvexSizes[index]; in GetConvexPolygon()
434 data->reset(new SkPoint[*numPts]); in GetConvexPolygon()
436 for (int i = 0; i < *numPts; ++i) { in GetConvexPolygon()
440 for (int i = 0; i < *numPts; ++i) { in GetConvexPolygon()
441 (*data)[i] = PolygonOffsetData::gConvexPoints[index][*numPts - i - 1]; in GetConvexPolygon()
452 *numPts = numPtsArray[arrayIndex]; in GetConvexPolygon()
458 data->reset(new SkPoint[*numPts]); in GetConvexPolygon()
460 create_ngon(*numPts, data->get(), width, height, dir); in GetConvexPolygon()
465 std::unique_ptr<SkPoint[]>* data, int* numPts) { in GetSimplePolygon() argument
[all …]
Dconvex_all_line_paths.cpp182 int numPts; in GetPath() local
186 numPts = (int)ConvexLineOnlyData::gSizes[index]; in GetPath()
193 numPts = 3; in GetPath()
196 numPts = 4; in GetPath()
199 numPts = 5; in GetPath()
202 numPts = 5; in GetPath()
206 numPts = 6; in GetPath()
209 numPts = 8; in GetPath()
212 numPts = 8; in GetPath()
216 numPts = 20; in GetPath()
[all …]
/external/skqp/src/gpu/ops/
DGrAAConvexTessellator.cpp209 if (previousRing.numPts() < 3) { in createInsetRings()
232 bool done = currentRing->numPts() >= 3; in createInsetRings()
272 fNorms.setCount(fNorms.count() + outerStrokeAndAARing.numPts()); in tessellate()
273 for (int i = 0; i < outerStrokeAndAARing.numPts(); ++i) { in tessellate()
308 if (SkStrokeRec::kStroke_Style == fStyle && fInitialRing.numPts() > 2) { in tessellate()
418 if (this->numPts() < 2) { in extractFromPath()
423 if (duplicate_pt(fPts[this->numPts()-1], fPts[0])) { in extractFromPath()
429 while (!noRemovalsToDo && this->numPts() >= 3) { in extractFromPath()
441 if (this->numPts() >= 3) { in extractFromPath()
444 } else if (this->numPts() == 2) { in extractFromPath()
[all …]
DGrAAConvexTessellator.h51 int numPts() const { return fPts.count(); } in numPts() function
71 void setReserve(int numPts) { fPts.setReserve(numPts); } in setReserve() argument
74 int numPts() const { return fPts.count(); } in numPts() function
131 void setReserve(int numPts) { fPts.setReserve(numPts); } in setReserve() argument
134 int numPts() const { return fPts.count(); } in numPts() function
DGrDefaultPathRenderer.cpp112 uint16_t numPts = (uint16_t)GrPathUtils::generateQuadraticPoints( in addQuad() local
116 for (uint16_t i = 0; i < numPts; ++i) { in addQuad()
137 uint16_t numPts = (uint16_t) GrPathUtils::generateCubicPoints( in addCubic() local
141 for (uint16_t i = 0; i < numPts; ++i) { in addCubic()
DGrAALinearizingConvexPathRenderer.cpp89 for (int i = 0; i < tess.numPts(); ++i) { in extract_verts()
258 int currentVertices = tess.numPts(); in onPrepareDraws()
/external/skia/src/gpu/ops/
DGrAAConvexTessellator.cpp218 if (previousRing.numPts() < 3) { in createInsetRings()
241 bool done = currentRing->numPts() >= 3; in createInsetRings()
281 fNorms.setCount(fNorms.count() + outerStrokeAndAARing.numPts()); in tessellate()
282 for (int i = 0; i < outerStrokeAndAARing.numPts(); ++i) { in tessellate()
317 if (SkStrokeRec::kStroke_Style == fStyle && fInitialRing.numPts() > 2) { in tessellate()
431 if (this->numPts() < 2) { in extractFromPath()
436 if (duplicate_pt(fPts[this->numPts()-1], fPts[0])) { in extractFromPath()
443 while (!noRemovalsToDo && this->numPts() >= 3) { in extractFromPath()
457 if (this->numPts() >= 3) { in extractFromPath()
460 } else if (this->numPts() == 2) { in extractFromPath()
[all …]
DGrAAConvexTessellator.h51 int numPts() const { return fPts.count(); } in numPts() function
71 void setReserve(int numPts) { fPts.setReserve(numPts); } in setReserve() argument
74 int numPts() const { return fPts.count(); } in numPts() function
131 void setReserve(int numPts) { fPts.setReserve(numPts); } in setReserve() argument
134 int numPts() const { return fPts.count(); } in numPts() function
DGrDefaultPathRenderer.cpp116 uint16_t numPts = (uint16_t)GrPathUtils::generateQuadraticPoints( in addQuad() local
120 for (uint16_t i = 0; i < numPts; ++i) { in addQuad()
142 uint16_t numPts = (uint16_t) GrPathUtils::generateCubicPoints( in addCubic() local
146 for (uint16_t i = 0; i < numPts; ++i) { in addCubic()
DGrAALinearizingConvexPathRenderer.cpp97 for (int i = 0; i < tess.numPts(); ++i) { in extract_verts()
280 int currentVertices = tess.numPts(); in onPrepareDraws()
/external/skia/tools/
DToolUtils.cpp247 SkPath make_star(const SkRect& bounds, int numPts, int step) { in make_star() argument
248 SkASSERT(numPts != step); in make_star()
252 for (int i = 1; i < numPts; ++i) { in make_star()
253 int idx = i * step % numPts; in make_star()
254 SkScalar theta = idx * 2 * SK_ScalarPI / numPts + SK_ScalarPI / 2; in make_star()
DToolUtils.h144 SkPath make_star(const SkRect& bounds, int numPts = 5, int step = 2);
/external/skqp/tools/
Dsk_tool_utils.cpp177 SkPath make_star(const SkRect& bounds, int numPts, int step) { in make_star() argument
178 SkASSERT(numPts != step); in make_star()
182 for (int i = 1; i < numPts; ++i) { in make_star()
183 int idx = i*step % numPts; in make_star()
184 SkScalar theta = idx * 2*SK_ScalarPI/numPts + SK_ScalarPI/2; in make_star()
Dsk_tool_utils.h138 SkPath make_star(const SkRect& bounds, int numPts = 5, int step = 2);
/external/skqp/src/gpu/ccpr/
DGrCCPerFlushResources.cpp280 int numPts = path.countPoints(); in transform_path_pts() local
281 SkASSERT(numPts + 1 <= outDevPts.count()); in transform_path_pts()
282 SkASSERT(numPts); in transform_path_pts()
309 for (int i = 1; i < numPts; ++i) { in transform_path_pts()
/external/skqp/tests/
DGrCCPRTest.cpp350 int numPts = rand.nextRangeU(GrShape::kMaxKeyFromDataVerbCnt + 1, in CCPRCacheTest() local
355 } while (step == numPts); in CCPRCacheTest()
356 fPaths[i] = sk_tool_utils::make_star(SkRect::MakeLTRB(0,0,1,1), numPts, step); in CCPRCacheTest()
/external/skia/src/core/
DSkPathRef.cpp353 if (int numPts = path.countPoints()) { in growForVerbsInPath() local
354 pts = fPoints.append(numPts); in growForVerbsInPath()
DSkPath.cpp1834 int numPts; in next() local
1836 case SkPathVerb::kMove: numPts = 1; break; in next()
1837 case SkPathVerb::kLine: numPts = 2; break; in next()
1838 case SkPathVerb::kQuad: numPts = 3; break; in next()
1840 numPts = 3; in next()
1843 case SkPathVerb::kCubic: numPts = 4; break; in next()
1844 case SkPathVerb::kClose: numPts = 0; break; in next()
1846 memcpy(pts, iterPts, sizeof(SkPoint) * numPts); in next()
/external/skia/modules/canvaskit/
Dcanvaskit_bindings.cpp471 uintptr_t /* float* */ ptsPtr, int numPts, in PathAddVerbsPointsWeights() argument
478 if ((ptIdx + n) > numPts) { \ in PathAddVerbsPointsWeights()
479 SkDebugf("Not enough points to match the verbs. Saw %d points\n", numPts); \ in PathAddVerbsPointsWeights()
488 path.incReserve(numPts); in PathAddVerbsPointsWeights()
533 uintptr_t ptsPtr, int numPts, in MakePathFromVerbsPointsWeights() argument
536 PathAddVerbsPointsWeights(path, verbsPtr, numVerbs, ptsPtr, numPts, wtsPtr, numWts); in MakePathFromVerbsPointsWeights()