32 SkScalar intervals[] = { 1.76934361e+36f, 2.80259693e-45f };
43 const SkScalar intervals[] = { 1.0f, 1.0f };
53 { { { -5.0f, 0.5f }, { -4.0f, 0.5f } },
false },
54 { { { 4.0f, 0.5f }, { 5.0f, 0.5f } },
false },
55 { { { 0.5f, 4.0f }, { 0.5f, 5.0f } },
false },
56 { { { 0.5f, -5.0f }, { 0.5f, -4.0f } },
false },
57 { { { 0.5f, 0.2f }, { 0.5f, 0.8f } },
true },
58 { { { 0.2f, 0.5f }, { 0.8f, 0.5f } },
true },
59 { { { 0.5f, -5.0f }, { 0.5f, 5.0f } },
true },
60 { { { -5.0f, 0.5f }, { 5.0f, 0.5f } },
true },
61 { { { 0.5f, -5.0f }, { 0.5f, 0.5f } },
true },
62 { { { 0.5f, 5.0f }, { 0.5f, 0.5f } },
true },
63 { { { -5.0f, 0.5f }, { 0.5f, 0.5f } },
true },
64 { { { 5.0f, 0.5f }, { 0.5f, 0.5f } },
true },
65 { { { 0.5f, 0.5f }, { 0.5f, 0.5f } },
false },
70 paint.setStrokeWidth(1.0f);
73 static const int kNumMats = 3;
79 for (
int i = 0;
i < kNumMats; ++
i) {
81 for (
int k = 0; k < 2; ++k) {
103 path.cubicTo(30.002f, 24, 30, 24, 30, 24);
111 paint.setPathEffect(dash);
125 p.setStrokeWidth(5.0e10f);
126 const SkScalar intervals[] = { 1, 1 };
134 SkScalar vals[] = { 98, 94, 2888458849.f, 227, 0, 197 };
DEF_TEST(DashPathEffectTest_crbug_348821, r)
static SkPathEffectBase * as_PEB(SkPathEffect *effect)
#define SK_ScalarInfinity
#define REPORTER_ASSERT(r, cond,...)
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
static sk_sp< SkPathEffect > Make(const SkScalar intervals[], int count, SkScalar phase)
SkMatrix & setTranslate(SkScalar dx, SkScalar dy)
SkMatrix & setRotate(SkScalar degrees, SkScalar px, SkScalar py)
@ kStroke_Style
set to stroke geometry
bool asPoints(PointData *results, const SkPath &src, const SkStrokeRec &, const SkMatrix &, const SkRect *cullR) const
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
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
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)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeWH(float w, float h)