112 for (
size_t xfermodeSet = 0; xfermodeSet < 2; xfermodeSet++) {
147 for (
size_t shapeIdx = 0; shapeIdx <=
kLast_Shape; shapeIdx++) {
186 SkFont titleFont(fLabelFont);
223 if (255 !=
paint->getAlpha()) {
225 dimPaint.
setARGB(255 * 255 / maxSum, 0, 0, 0);
226 paint->setAlpha(255 *
paint->getAlpha() / maxSum);
261 canvas->
drawPath(fOval, shapePaint);
266 canvas->
drawPath(fConcave, shapePaint);
#define SK_ABORT(message,...)
SK_API const char * SkBlendMode_Name(SkBlendMode blendMode)
@ kLastCoeffMode
last porter duff blend mode
@ kLastMode
last valid value
#define SkColorGetR(color)
#define SkColorGetG(color)
#define SkColorGetA(color)
#define SkColorGetB(color)
constexpr SkColor kShapeColors[2]
constexpr int kShapeSpacing
constexpr int kXfermodeTypeSpacing
constexpr int kTitleSpacing
constexpr int kSubtitleSpacing
constexpr int kShapeTypeSpacing
constexpr int kPaintSpacing
constexpr int kLabelSpacing
constexpr SkColor kBGColor
void onDraw(SkCanvas *canvas) override
void draw_pass(SkCanvas *canvas, DrawingPass drawingPass)
SkISize getISize() override
void onOnceBeforeDraw() override
void drawShape(SkCanvas *canvas, Shape shape, const SkPaint &paint, SkBlendMode mode)
SkString getName() const override
void setupShapePaint(SkCanvas *canvas, SkColor color, SkBlendMode mode, SkPaint *paint)
void drawModeName(SkCanvas *canvas, SkBlendMode mode)
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void translate(SkScalar dx, SkScalar dy)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void rotate(SkScalar degrees)
void drawPath(const SkPath &path, const SkPaint &paint)
void setSubpixel(bool subpixel)
void setTypeface(sk_sp< SkTypeface > tf)
void setSize(SkScalar textSize)
void setEmbolden(bool embolden)
void setAntiAlias(bool aa)
void setARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
void setBlendMode(SkBlendMode mode)
SkPathBuilder & moveTo(SkPoint pt)
SkPathBuilder & quadTo(SkPoint pt1, SkPoint pt2)
static void DrawString(SkCanvas *canvas, const char text[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint, Align align=kLeft_Align)
static float max(float r, float g, float b)
clipRect(r.rect, r.opAA.op(), r.opAA.aa())) template<> void Draw
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 mode
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 SkISize Make(int32_t w, int32_t h)