52 return fBaseName.
c_str();
66 for (
int i = 0;
i <
N;
i++) {
95 canvas->
concat(perspective);
97 for (
int i = 0;
i < loops;
i++) {
124 paint->setAlpha(0x80);
125 paint->setBlendMode(fMode);
131 return fName.
c_str();
149 paint->setAlpha(0x80);
155 return fName.
c_str();
172 SkPoint pts[2] = { {0.f, 0.f}, {50.f, 50.f} };
179 paint->setShader(fShader);
184 fName.
append(
"_localcoords");
185 return fName.
c_str();
233 if (FLAGS_strokeWidth >= 0) {
241 for (
int loop = 0; loop < loops; loop++) {
242 for (
size_t i = 0;
i < sizes;
i++) {
284 if (FLAGS_strokeWidth >= 0) {
300 for (
int loop = 0; loop < loops; loop++) {
301 for (
size_t i = 0;
i < sizes;
i++) {
313 alpha = rand.
nextU() & 255;
321 paint.setAlpha(alpha);
static const int strokeWidth
static DEFINE_double(strokeWidth, -1.0, "If set, use this stroke width in RectBench.")
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorWHITE
virtual void setupPaint(SkPaint *paint)
BlitMaskBench(SkCanvas::PointMode mode, BlitMaskBench::kMaskType type, const char *name)
void onDraw(int loops, SkCanvas *canvas) override
const char * onGetName() override
SkCanvas::PointMode fMode
LocalCoordsRectBench(bool aa, bool perspective=false)
const char * onGetName() override
void onDelayedSetup() override
void setupPaint(SkPaint *paint) override
void drawThisRect(SkCanvas *c, const SkRect &r, const SkPaint &p) override
const char * onGetName() override
OvalBench(int shift, int stroke=0)
const char * onGetName() override
PointsBench(SkCanvas::PointMode mode, const char *name)
SkCanvas::PointMode fMode
void onDraw(int loops, SkCanvas *canvas) override
void drawThisRect(SkCanvas *c, const SkRect &r, const SkPaint &p) override
RRectBench(int shift, int stroke=0)
const char * onGetName() override
const char * onGetName() override
RectBench(int shift, int stroke=0, bool aa=true, bool perspective=false)
void onDraw(int loops, SkCanvas *canvas) override
virtual void drawThisRect(SkCanvas *c, const SkRect &r, const SkPaint &p)
const char * computeName(const char root[])
void onDelayedSetup() override
void setupPaint(SkPaint *paint) override
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 drawRect(const SkRect &rect, const SkPaint &paint)
void drawOval(const SkRect &oval, const SkPaint &paint)
void drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint &paint)
void drawRoundRect(const SkRect &rect, SkScalar rx, SkScalar ry, const SkPaint &paint)
void concat(const SkMatrix &matrix)
@ kLines_PointMode
draw each pair of points as a line segment
@ kPolygon_PointMode
draw the array of points as a open polygon
@ kPoints_PointMode
draw each point separately
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 & setSkewX(SkScalar v)
SkMatrix & setPerspX(SkScalar v)
SkMatrix & setPerspY(SkScalar v)
@ kStroke_Style
set to stroke geometry
void printf(const char format[],...) SK_PRINTF_LIKE(2
void set(const SkString &src)
void append(const char text[])
void prepend(const char text[])
const char * c_str() const
void void void appendf(const char format[],...) SK_PRINTF_LIKE(2
const char * onGetName() override
void setupPaint(SkPaint *paint) override
const char * onGetName() override
void setupPaint(SkPaint *paint) override
PODArray< SkColor > colors
DEF_SWITCHES_START aot vmservice shared library name
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
void setXYWH(float x, float y, float width, float height)
void offset(float dx, float dy)
constexpr float height() const
constexpr float width() const