30 paint.setAntiAlias(
true);
47 for (
int y = 0;
y < 4; ++
y) {
48 for (
int x = 0;
x < 4; ++
x) {
49 bool nonWhite = (1 ==
y) && (1 ==
x);
64 { 3.0995476e+010f, 42.929779f },
65 { -3.0995163e+010f, 51.050385f },
66 { -3.0995157e+010f, 51.050392f },
67 { -3.0995134e+010f, 51.050400f },
97 {
L,
T }, {
L - 10,
T - 10 },
98 {
L,
B }, {
L - 10,
B + 10 },
99 {
R,
T }, {
R + 10,
T - 10 },
100 {
R,
B }, {
R + 10,
B + 10 },
105 SkDebugf(
"----- [%zu] %g %g -> %g %g\n",
111 static const SkPoint gFull[] = {
129 if (!valid || 0 != memcmp(&gFull[
i],
dst,
sizeof(
dst))) {
130 SkDebugf(
"++++ [%zu] %g %g -> %g %g\n",
136 static const SkPoint gPartial[] = {
142 {
L,
T - 10 }, {
L,
B + 10 }, {
L,
T }, {
L,
B },
143 {
R,
T - 10 }, {
R,
B + 10 }, {
R,
T }, {
R,
B },
144 {
L - 10,
T }, {
R + 10,
T }, {
L,
T }, {
R,
T },
145 {
L - 10,
B }, {
R + 10,
B }, {
L,
B }, {
R,
B },
149 if (!valid || 0 != memcmp(&gPartial[
i+2],
dst,
sizeof(
dst))) {
150 SkDebugf(
"++++ [%zu] %g %g -> %g %g\n",
154 !memcmp(&gPartial[
i+2],
dst,
sizeof(
dst)));
166 SkPoint src[] = {{ -5.77698802E+17f, -1.81758057E+23f}, {38127, 2}};
168 SkRect clip = { -32767, -32767, 32767, 32767 };
DEF_TEST(Clipper, reporter)
static void test_edgeclipper()
static void test_hairclipping(skiatest::Reporter *reporter)
static void test_intersectline(skiatest::Reporter *reporter)
constexpr SkColor SK_ColorWHITE
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static SkPathRef * gEmpty
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
#define REPORTER_ASSERT(r, cond,...)
void allocN32Pixels(int width, int height, bool isOpaque=false)
uint32_t * getAddr32(int x, int y) const
void eraseColor(SkColor4f) const
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
bool clipCubic(const SkPoint pts[4], const SkRect &clip)
static bool IntersectLine(const SkPoint src[2], const SkRect &clip, SkPoint dst[2])
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 SkRect MakeWH(float w, float h)