49 bool success = shouldDraw ? (~0
U == andValue) : (0 == orValue);
54 str =
"Path expected to draw everywhere, but didn't. ";
56 str =
"Path expected to draw nowhere, but did. ";
59 " filltype[%d] ptcount[%d]", str,
paint.getStyle(),
61 paint.isAntiAlias(), (
int)
path.getFillType(),
path.countPoints());
89 for (
size_t cap = 0; cap <
std::size(gCaps); ++cap) {
100 paint.setStrokeCap(gCaps[cap]);
104 paint.setAntiAlias(
false);
106 paint.setAntiAlias(
true);
113#define CX (SkIntToScalar(DIMENSION) / 2)
114#define CY (SkIntToScalar(DIMENSION) / 2)
135 static void (*gMakeProc[])(
SkPath*) = {
144 for (
int doClose = 0; doClose < 2; ++doClose) {
155 for (
size_t fill = 0; fill <
std::size(gFills); ++fill) {
156 path.setFillType(gFills[fill]);
157 bool shouldDraw =
path.isInverseFillType();
static void make_C(SkPath *path)
static void make_empty(SkPath *)
DEF_TEST(EmptyPath, reporter)
static void make_Q(SkPath *path)
static void make_L(SkPath *path)
static void iter_paint(skiatest::Reporter *reporter, const SkPath &path, bool shouldDraw, DrawCaps drawCaps)
static void test_emptydrawing(skiatest::Reporter *reporter)
static void make_M(SkPath *path)
static void make_MM(SkPath *path)
static void make_MZM(SkPath *path)
static void drawAndTest(skiatest::Reporter *reporter, const SkPath &path, const SkPaint &paint, bool shouldDraw)
constexpr SkColor SK_ColorTRANSPARENT
constexpr SkColor SK_ColorWHITE
static constexpr bool SkToBool(const T &x)
void allocN32Pixels(int width, int height, bool isOpaque=false)
uint32_t * getAddr32(int x, int y) const
void eraseColor(SkColor4f) const
void drawPath(const SkPath &path, const SkPaint &paint)
@ kButt_Cap
no stroke extension
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
@ kStrokeAndFill_Style
sets to stroke and fill geometry
@ kMiter_Join
extends to miter limit
@ kBevel_Join
connects outside edges
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 SkString join(const CommandLineFlags::StringArray &)
static constexpr SkFontStyle gStyles[]