27#define MAX_COEFF_SHIFT 6
41 idx = idy + (idx >> 1);
59 shift &= ~(shift>>31);
97static const int gXY[] = {
98 4, 0, 0, -4, 8, -4, 12, 0, 8, 4, 0, 4
102 0, 0, 10, 10, 20, 20, 30, 10, 40, 0, 50, -10, 60, -20, 70, -10, 80, 0
106 0, 0, 5, 15, 20, 20, 35, 15, 40, 0
110 0, 0, 1, 10, 2, 0, 3, -10, 4, 0
115 -4, 0, 4, 20, 0, 25, -4, 20, 4, 0
124 for (
unsigned i = 4;
i <
count;
i += 2) {
129 uint32_t computedCount =
131 uint32_t estimatedCount =
140 bool isAccurate = (estimatedCount >= computedCount) &&
141 (estimatedCount <= 2 * computedCount);
145 "%.2f %.2f computes %u, estimates %u\n",
147 path[2].fX,
path[2].fY, computedCount, estimatedCount);
152 return (numErrors == 0);
static const int points[]
static uint32_t quadraticPointCount_EC(const SkPoint points[], SkScalar tol)
static uint32_t quadraticPointCount_CC(const SkPoint points[], SkScalar tol)
static const int gOvalish[]
static const int gSawtooth[]
static const int gRibbon[]
static const uint32_t MAX_POINTS_PER_CURVE
static int estimate_distance(const SkPoint points[])
static int cheap_distance(SkScalar dx, SkScalar dy)
static uint32_t estimate_pointCount(int distance)
static uint32_t compute_pointCount(SkScalar d, SkScalar tol)
static uint32_t quadraticPointCount_EE(const SkPoint points[])
static SkScalar compute_distance(const SkPoint points[])
static uint32_t quadraticPointCount_CE(const SkPoint points[])
static void TestQuadPointCount(skiatest::Reporter *reporter)
DEF_TEST(PathCoverage, reporter)
static const int gSharpSawtooth[]
static bool one_d_pe(const int *array, const unsigned int count, skiatest::Reporter *reporter)
static int SkCLZ(uint32_t mask)
static int SkNextPow2(int value)
static int32_t SkAbs32(int32_t value)
#define SkScalarRoundToInt(x)
#define SkScalarCeilToInt(x)
static SkScalar DistanceToLineSegmentBetween(const SkPoint &pt, const SkPoint &a, const SkPoint &b)
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
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
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
static constexpr SkPoint Make(float x, float y)