Searched refs:kNumPoints (Results 1 – 6 of 6) sorted by relevance
/third_party/flutter/skia/example/ |
D | SkiaSDLExample.cpp | 88 static const int kNumPoints = 5; in create_star() local 90 SkPoint points[kNumPoints] = {{0, SkIntToScalar(-50)} }; in create_star() 92 rot.setRotate(SkIntToScalar(360) / kNumPoints); in create_star() 93 for (int i = 1; i < kNumPoints; ++i) { in create_star() 97 for (int i = 0; i < kNumPoints; ++i) { in create_star() 98 concavePath.lineTo(points[(2 * i) % kNumPoints]); in create_star()
|
/third_party/flutter/skia/bench/ |
D | PathBench.cpp | 324 fPoints.reset(kNumPoints); in createData() 325 for (int i = 0; i < kNumPoints; ++i) { 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 …]
|
/third_party/skia/bench/ |
D | PathBench.cpp | 326 fPoints.reset(kNumPoints); in createData() 327 for (int i = 0; i < kNumPoints; ++i) { 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 …]
|
/third_party/flutter/skia/tests/ |
D | MatrixTest.cpp | 784 static const int kNumPoints = 5; in check_decompScale() local 785 const SkPoint testPts[kNumPoints] = { in check_decompScale() 793 SkPoint v1[kNumPoints]; in check_decompScale() 794 original.mapPoints(v1, testPts, kNumPoints); in check_decompScale() 796 SkPoint v2[kNumPoints]; in check_decompScale() 801 scaleMat.mapPoints(v2, testPts, kNumPoints); in check_decompScale() 802 remaining.mapPoints(v2, kNumPoints); in check_decompScale() 804 for (int i = 0; i < kNumPoints; ++i) { in check_decompScale()
|
/third_party/skia/tests/ |
D | MatrixTest.cpp | 793 static const int kNumPoints = 5; in check_decompScale() local 794 const SkPoint testPts[kNumPoints] = { in check_decompScale() 802 SkPoint v1[kNumPoints]; in check_decompScale() 803 original.mapPoints(v1, testPts, kNumPoints); in check_decompScale() 805 SkPoint v2[kNumPoints]; in check_decompScale() 810 scaleMat.mapPoints(v2, testPts, kNumPoints); in check_decompScale() 811 remaining.mapPoints(v2, kNumPoints); in check_decompScale() 813 for (int i = 0; i < kNumPoints; ++i) { in check_decompScale()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
D | raw_hash_set_benchmark.cc | 197 const size_t kNumPoints = 10; in CacheInSteadyStateArgs() local 198 for (size_t i = 0; i != kNumPoints; ++i) in CacheInSteadyStateArgs() 200 capacity * (max_load_factor + i * max_load_factor / kNumPoints) / 2)); in CacheInSteadyStateArgs()
|