152 const int kXStep = 150;
153 const int kYStep = 160;
154 int maxX = fMatrices.
size();
163 for (
int i = 0;
i < fPaints.
size(); ++
i) {
164 for (
int j = 0; j < fMatrices.
size(); ++j) {
175 fPaints[
i].setColor(
color);
189 for (
int i = 0;
i < fPaints.
size(); ++
i) {
197 fPaints[
i].setColor(
color);
205 for (
int i = 0;
i < fPaints.
size(); ++
i) {
214 fPaints[
i].setColor(
color);
222 for (
int i = 0;
i < fPaints.
size(); ++
i) {
230 fPaints[
i].setColor(
color);
237 for (
int i = 0;
i < fPaints.
size(); ++
i) {
246 fPaints[
i].setColor(
color);
259 for (
int i = 0;
i < fPaints.
size(); ++
i) {
267 fPaints[
i].setColor(
color);
268 fPaints[
i].setShader(shader);
273 fPaints[
i].setShader(
nullptr);
279 for (
int i = 0;
i < fPaints.
size(); ++
i) {
287 canvas->
scale(1, -1);
288 canvas->
scale(1, 0.66f);
291 fPaints[
i].setColor(
color);
303 using INHERITED =
GM;
308DEF_GM(
return new OvalGM; )
314 paint.setAntiAlias(
true);
322 canvas->translate(5, 5);
324 auto doRow = [&](
const SkPath&
p) {
325 canvas->drawPath(
p,
paint);
326 canvas->translate(55, 0);
static const size_t testCount
constexpr SkColor SK_ColorLTGRAY
SK_API SkColor SkHSVToColor(U8CPU alpha, const SkScalar hsv[3])
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawOval(const SkRect &oval, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void rotate(SkScalar degrees)
void scale(SkScalar sx, SkScalar sy)
void concat(const SkMatrix &matrix)
static sk_sp< SkShader > MakeRadial(const SkPoint ¢er, SkScalar radius, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
SkMatrix & postTranslate(SkScalar dx, SkScalar dy)
void setStyle(Style style)
void setColor(SkColor color)
void setAntiAlias(bool aa)
@ kStroke_Style
set to stroke geometry
@ kStrokeAndFill_Style
sets to stroke and fill geometry
void setStrokeWidth(SkScalar width)
float nextRangeF(float min, float max)
GM(SkColor backgroundColor=SK_ColorWHITE)
SkColor genColor(SkRandom *rand)
SkString getName() const override
SkISize getISize() override
void onDraw(SkCanvas *canvas) override
sk_sp< SkBlender > blender SkRect rect
PODArray< SkColor > colors
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
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 to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets dir
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)
DEF_SIMPLE_GM(open_ovals, canvas, 225, 110)
static constexpr SkISize Make(int32_t w, int32_t h)
static constexpr SkPoint Make(float x, float y)
static constexpr SkRect MakeWH(float w, float h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)