21#include <initializer_list>
28 { 100000000000.0f, 100000000000.0f }, { 0, 0 }, { 10, 10 },
29 { 10, 10 }, { 0, 0 }, { 10, 10 }
34 path.cubicTo(pts[
i], pts[
i + 1], pts[
i + 2]);
50 constexpr float resScale = 1000;
60 { 100000000000.0f, 100000000000.0f }, { 0, 0 },
66 path.quadTo(pts[
i], pts[
i + 1]);
234 meas = std::move(meas2);
238 SkPoint stdP, hiP, pts[] = {{0,0}, {100,0}, {100,0}};
241 p.conicTo(pts[1], pts[2], 1);
246 p.conicTo(pts[1], pts[2], 10);
256 path.moveTo(0, 0);
path.lineTo(100, 0);
280 path.moveTo(0, 0).lineTo(100, 100).lineTo(200, 100);
281 path.moveTo(2, 2).moveTo(3, 3);
282 path.moveTo(4, 4).close().close().close();
283 path.moveTo(5, 5).lineTo(5, 5);
284 path.moveTo(5, 5).lineTo(5, 5).close();
285 path.moveTo(5, 5).lineTo(5, 5).close().close();
286 path.moveTo(6, 6).lineTo(7, 7);
303 path.moveTo(10, 10).lineTo(20, 20).moveTo(30, 30);
305 for (
bool forceClosed : {
false,
true}) {
314 path.addRect({1, 2, 3, 4});
315 path.incReserve(100);
332 path.addCircle(0, 0, 100);
333 path.addCircle(0, 0, 10);
338 auto cm0 = fact.
next();
339 auto cm1 = fact.
next();
351 auto cm2 = fact.
next();
static void test_empty_contours(skiatest::Reporter *reporter)
static void test_small_segment3(skiatest::Reporter *reporter)
static void test_small_segment2()
static void test_shrink(skiatest::Reporter *reporter)
DEF_TEST(PathMeasure, reporter)
static void test_90_degrees(const sk_sp< SkContourMeasure > &cm, SkScalar radius, skiatest::Reporter *reporter)
static void test_small_segment()
static void test_MLM_contours(skiatest::Reporter *reporter)
static bool SkScalarNearlyEqual(SkScalar x, SkScalar y, SkScalar tolerance=SK_ScalarNearlyZero)
#define REPORTER_ASSERT(r, cond,...)
sk_sp< SkContourMeasure > next()
bool getPosTan(SkScalar distance, SkPoint *position, SkVector *tangent) const
static size_t CountSegments(const SkPathMeasure &)
void setPath(const SkPath *, bool forceClosed)
bool getPosTan(SkScalar distance, SkPoint *position, SkVector *tangent)
static void ShrinkToFit(SkPath *path)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
CanvasPathMeasure PathMeasure
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