51 const SkPoint pts[] = { { 0, v }, { v, 0 }, { 1, v }, { v, 1 }, { v, v } };
55 bool nor =
p.normalize();
98 memcpy(&storage, &
value, 4);
105 memcpy(&
value, &storage, 4);
113 SkPoint pt = { bigFloat, bigFloat };
135 static const struct {
155 const float tests[] = { 1.0f, 0.0f, 1.0e-37f, 3.4e38f, 42.0f, 0.00012f };
157 const SkPoint kOne = {1.0f, 1.0f};
159 SkPoint slow = kOne, fast = kOne;
164 if (slow.
length() < FLT_MIN && fast.length() < FLT_MIN)
continue;
static const struct @223 gRec[]
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static bool SkIsFinite(T x, Pack... values)
#define SkScalarInvert(x)
static bool SkScalarNearlyEqual(SkScalar x, SkScalar y, SkScalar tolerance=SK_ScalarNearlyZero)
#define SK_ScalarInfinity
#define REPORTER_ASSERT(r, cond,...)
static const SkScalar * AsScalars(const SkPoint &pt)
static bool SetLengthFast(SkPoint *pt, float length)
static bool CanNormalize(SkScalar dx, SkScalar dy)
DEF_TEST(BO_PointBasic, reporter)
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
bool setLength(float length)
static float Normalize(SkVector *vec)
void set(float x, float y)
static float Length(float x, float y)
const float * asScalars() const
static void test_overflow(skiatest::Reporter *reporter)
static void test_normalize_cannormalize_consistent(skiatest::Reporter *reporter)
static void test_length(skiatest::Reporter *reporter, SkScalar x, SkScalar y, SkScalar expectedLength)
T get_value(skiatest::Reporter *reporter, T value)
static float force_as_float(skiatest::Reporter *reporter, float value)
static void test_casts(skiatest::Reporter *reporter)
static void test_Normalize(skiatest::Reporter *reporter, SkScalar x, SkScalar y)