38 SkCanvas* canvas = surf->getCanvas();
40 SkRect r = { 0, 33000, 300, 33300 };
45 if (surf->readPixels(
output,
x,
y)) {
52 paint.setAntiAlias(
true);
58 if (surf->readPixels(
output,
x,
y)) {
70 const float* fptr = (
const float*)raw;
71 path->moveTo(fptr[0], fptr[1]);
75 const float* fptr = (
const float*)raw;
76 path->cubicTo(fptr[0], fptr[1], fptr[2], fptr[3], fptr[4], fptr[5]);
105 0x419727af, 0x43011f0c, 0x41972663, 0x43011f27,
106 0x419728fc, 0x43011ed4, 0x4194064b, 0x43012197
116 paint.setAntiAlias(
true);
129 paint.setAntiAlias(
true);
151 path.moveTo(7.00649e-45f, 2.f);
152 path.moveTo(0.0160219f, 7.45063e-09f);
153 path.moveTo(192.263f, 8.40779e-44f);
154 path.moveTo(7.34684e-40f, 194.25f);
155 path.moveTo(2.3449e-38f, 6.01858e-36f);
156 path.moveTo(7.34684e-40f, 194.25f);
157 path.cubicTo(5.07266e-39f, 56.0488f,
159 7.34684e-40f, 194.25f);
163 paint.setAntiAlias(
true);
173 for (
int y = 0;
y < 256; ++
y) {
190 path.quadTo(10, 10, 20, 20);
191 path.toggleInverseFillType();
200 paint.setAntiAlias(
false);
202 paint.setAntiAlias(
true);
212 path.quadTo(10, 20, 20, 10);
215 paint.setAntiAlias(
false);
217 paint.setAntiAlias(
true);
229 path.quadTo(-329936, -100000000, 1153, 330003);
232 paint.setAntiAlias(
true);
254 const SkScalar vals[] = { 27734, 35660, 2157846850.0f, 247 };
264 SkScalar intervals[2] = {837099584, 33450};
271 path.cubicTo(-329936, -100000000, -329936, 100000000, 1153, 330003);
274 paint.setAntiAlias(
true);
284 path.moveTo(16365.5f, 1394);
285 path.lineTo(16365.5f, 1387.5f);
286 path.quadTo(16365.5f, 1385.43f, 16367, 1383.96f);
287 path.quadTo(16368.4f, 1382.5f, 16370.5f, 1382.5f);
288 path.lineTo(16465.5f, 1382.5f);
289 path.quadTo(16467.6f, 1382.5f, 16469, 1383.96f);
290 path.quadTo(16470.5f, 1385.43f, 16470.5f, 1387.5f);
291 path.lineTo(16470.5f, 1394);
292 path.quadTo(16470.5f, 1396.07f, 16469, 1397.54f);
293 path.quadTo(16467.6f, 1399, 16465.5f, 1399);
294 path.lineTo(16370.5f, 1399);
295 path.quadTo(16368.4f, 1399, 16367, 1397.54f);
296 path.quadTo(16365.5f, 1396.07f, 16365.5f, 1394);
301 m.postTranslate(0.001f, 0.001f);
302 path.transform(
m, &p2);
310 m.postTranslate(-0.001f, -0.001f);
311 path.transform(
m, &p2);
315 path.transform(
m, &p2);
328 paint.setAntiAlias(
true);
341 path.lineTo(5000000, 0);
343 SkScalar intervals[] = { 0.2f, 0.2f };
349 paint.setPathEffect(dash);
361 path.lineTo(10000000, 0);
363 SkScalar intervals[] = { 0.5f, 0.5f };
368 paint.setPathEffect(dash);
384 { 13.0f, 8.0f }, { 170.0f, 2.0 }, { 256.0f, 33554430.0f }, { 120.0f, 5.0f }
399 { 13.0f, 8.0f }, { 170.0f, 2.0 }, { 256.0f, 33554430.0f }, { 120.0f, 5.0f }
static void test_crbug_165432(skiatest::Reporter *reporter)
static void moveToH(SkPath *path, const uint32_t raw[])
static void cubicToH(SkPath *path, const uint32_t raw[])
static void test_halfway()
static void test_bigcubic()
static void test_crbug_1239558(skiatest::Reporter *reporter)
static void test_giantaa()
static void test_crbug_472147_actual(skiatest::Reporter *reporter)
static void test_crbug_140803()
static void test_crbug_472147_simple(skiatest::Reporter *reporter)
static void test_crbug_140642()
static void test_crbug131181()
DEF_TEST(DrawPath, reporter)
static void test_bug533()
static void test_crbug_124652()
static void test_big_aa_rect(skiatest::Reporter *reporter)
static void test_infinite_dash(skiatest::Reporter *reporter)
static void test_inversepathwithclip()
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorWHITE
#define SkScalarRoundToInt(x)
#define REPORTER_ASSERT(r, cond,...)
SkColor getColor(int x, int y) const
void allocN32Pixels(int width, int height, bool isOpaque=false)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void translate(SkScalar dx, SkScalar dy)
void clear(SkColor color)
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
void drawPath(const SkPath &path, const SkPaint &paint)
void clipRRect(const SkRRect &rrect, SkClipOp op, bool doAntiAlias)
static sk_sp< SkPathEffect > Make(const SkScalar intervals[], int count, SkScalar phase)
@ kStroke_Style
set to stroke geometry
bool filterPath(SkPath *dst, const SkPath &src, SkStrokeRec *, const SkRect *cullR) const
void setRectRadii(const SkRect &rect, const SkVector radii[4])
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
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
SK_API bool FillPathWithPaint(const SkPath &src, const SkPaint &paint, SkPath *dst, const SkRect *cullRect, SkScalar resScale=1)
static SkImageInfo MakeN32Premul(int width, int height)
constexpr float left() const
constexpr float top() const
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeWH(float w, float h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
std::shared_ptr< const fml::Mapping > data