41 static const SkColor kFailureRed = 0x7F7F0000;
42 static const SkColor kFailureYellow = 0x7F7F7F00;
43 static const SkColor kSuccessGreen = 0x7F007f00;
51 if (!
surface->readPixels(pmap, 0, 0)) {
61 for (
int x = 0;
x <
w; ++
x) {
74 if (numBlobs == expectedCaps) {
75 result.setColor(kSuccessGreen);
76 }
else if (numBlobs > expectedCaps) {
77 result.setColor(kFailureYellow);
79 result.setColor(kFailureRed);
82 auto img =
surface->makeImageSnapshot();
143 paint.setAntiAlias(aa);
146 for (
auto cap :
kCaps) {
148 paint.setStrokeCap(cap);
195 if (!dContext && rContext) {
196 *errorMsg =
"Not supported in DDL mode";
209 paint.setAntiAlias(aa);
212 for (
auto cap :
kCaps) {
214 paint.setStrokeCap(cap);
220 int expectedCaps = 0;
223 pathStr.
append(
"M 9.5 9.5 ");
225 pathStr.
append(firstVerb);
228 pathStr.
append(
"M 40.5 9.5 ");
230 pathStr.
append(secondVerb);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static GrDirectContext * GrAsDirectContext(GrContext_Base *base)
#define SkGetPackedR32(packed)
constexpr SkColor SK_ColorTRANSPARENT
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorWHITE
static constexpr bool SkToBool(const T &x)
void alloc(const SkImageInfo &)
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
sk_sp< SkSurface > makeSurface(const SkImageInfo &info, const SkSurfaceProps *props=nullptr)
virtual GrRecordingContext * recordingContext() const
SkImageInfo imageInfo() const
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
@ kButt_Cap
no stroke extension
@ kStroke_Style
set to stroke geometry
static bool FromSVGString(const char str[], SkPath *)
const uint32_t * addr32() const
void append(const char text[])
const char * c_str() const
void void void appendf(const char format[],...) SK_PRINTF_LIKE(2
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
static skiagm::DrawResult draw_zero_length_capped_paths_dbl_contour(SkCanvas *canvas, bool aa, SkString *errorMsg)
static skiagm::DrawResult draw_zero_length_capped_paths(SkCanvas *canvas, bool aa, SkString *errorMsg)
static const int kNumRows
static const int kTotalWidth
static const SkPaint::Cap kCaps[]
static const int kNumColumns
static const int kDblContourTotalWidth
static const char * kAllVerbs[]
static const int kTotalHeight
static const int kDblContourNumColums
static const int kCellWidth
static const SkScalar kWidths[]
static const char * kSomeVerbs[]
static const int kCellHeight
DEF_SIMPLE_GM_BG_CAN_FAIL(zero_length_paths_aa, canvas, errorMsg, kTotalWidth, kTotalHeight, SK_ColorBLACK)
static void draw_path_cell(SkCanvas *canvas, SkSurface *surface, int expectedCaps)
static const int kCellPad
SkImageInfo makeWH(int newWidth, int newHeight) const
static SkImageInfo MakeN32Premul(int width, int height)
static constexpr SkRect MakeWH(float w, float h)