22 {{{0, 0}, {1, 1}, {2, 2}, {0, 3}}},
23 {{{0, 0}, {1, 1}, {2, 2}, {3, 0}}},
24 {{{0, 0}, {5, 0}, {-2, 4}, {3, 4}}},
25 {{{0, 2}, {1, 0}, {2, 0}, {3, 0}}},
26 {{{0, .2}, {1, 0}, {2, 0}, {3, 0}}},
27 {{{0, .02}, {1, 0}, {2, 0}, {3, 0}}},
28 {{{0, .002}, {1, 0}, {2, 0}, {3, 0}}},
29 {{{0, .0002}, {1, 0}, {2, 0}, {3, 0}}},
30 {{{0, .00002}, {1, 0}, {2, 0}, {3, 0}}},
31 {{{0, FLT_EPSILON * 2}, {1, 0}, {2, 0}, {3, 0}}},
38 {1.1094003924, 0.5547001962},
39 {0.133038021, 0.06651901052},
40 {0.0133330370, 0.006666518523},
41 {0.001333333037, 0.0006666665185},
42 {0.000133333333, 6.666666652e-05},
43 {1.333333333e-05, 6.666666667e-06},
44 {1.5894571940104115e-07, 7.9472859700520577e-08},
50 for (
size_t index = 0; index <
tests_count; ++index) {
57 double denormalizedDistance[2];
62 for (inner = 0; inner < 2; ++inner) {
63 double distSq = denormalizedDistance[inner];
65 double answersSq =
answers[index][inner];
66 answersSq *= answersSq;
70 SkDebugf(
"%s [%d,%d] denormalizedDistance:%g != answer:%g"
71 " distSq:%g answerSq:%g normalSquared:%g\n",
72 __FUNCTION__,
static_cast<int>(index), (
int)inner,
73 denormalizedDistance[inner],
answers[index][inner],
74 distSq, answersSq, normalSquared);
77 double normalizedDistance[2];
80 for (inner = 0; inner < 2; ++inner) {
84 SkDebugf(
"%s [%d,%d] normalizedDistance:%1.9g != answer:%g\n",
85 __FUNCTION__,
static_cast<int>(index), (
int)inner,
86 normalizedDistance[inner],
answers[index][inner]);
static const double answers[][2]
static const CubicPts tests[]
static const size_t tests_count
DEF_TEST(PathOpsLineParameters, reporter)
bool ValidCubic(const SkDCubic &cubic)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
bool AlmostEqualUlps(const SkPoint &pt1, const SkPoint &pt2)
#define REPORTER_ASSERT(r, cond,...)
bool cubicEndPoints(const SkDCubic &pts)
double controlPtDistance(const SkDCubic &pts, int index) const
double normalSquared() const
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
SkDPoint fPts[kPointCount]