37 const SkPoint kPts0[] = { { 0, 0 }, {
s,
s } };
38 const SkPoint kPts1[] = { {
s/2, 0 }, {
s/2,
s } };
40 const SkColor kColors0[] = {0x80F00080, 0xF0F08000, 0x800080F0 };
41 const SkColor kColors1[] = {0xF08000F0, 0x8080F000, 0xF000F080 };
92 canvas->
scale(2.f, 2.f);
103 path.moveTo(0, 40).cubicTo(10, 70, 20, 10, 30, 40);
107 for (
size_t tm0 = 0; tm0 <
std::size(kTileModes); ++tm0) {
108 for (
size_t tm1 = 0; tm1 <
std::size(kTileModes); ++tm1) {
135 using INHERITED =
GM;
140DEF_GM(
return new ShaderPathGM; )
constexpr SkColor SK_ColorTRANSPARENT
sk_sp< SkImage > asImage() const
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
void allocN32Pixels(int width, int height, bool isOpaque=false)
void eraseColor(SkColor4f) const
void translate(SkScalar dx, SkScalar dy)
void drawPaint(const SkPaint &paint)
void drawPath(const SkPath &path, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
SkMatrix & postRotate(SkScalar degrees, SkScalar px, SkScalar py)
SkMatrix & postScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py)
SkMatrix & setTranslate(SkScalar dx, SkScalar dy)
void setStyle(Style style)
void setAntiAlias(bool aa)
@ kStroke_Style
set to stroke geometry
void setShader(sk_sp< SkShader > shader)
void setStrokeWidth(SkScalar width)
GM(SkColor backgroundColor=SK_ColorWHITE)
void onOnceBeforeDraw() override
SkISize getISize() override
void onDraw(SkCanvas *canvas) override
SkString getName() const override
static float min(float r, float g, float b)
SkSamplingOptions sampling
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
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
static void makebm(SkBitmap *bm, int w, int h)
static constexpr SkISize Make(int32_t w, int32_t h)