32 { 0x10000000,
true,
"alphaBitmap" },
46 static const SkPoint kPts0[] = { { 0, 0 }, {
s,
s } };
47 static const SkPoint kPts1[] = { {
s/2, 0 }, {
s/2,
s } };
49 static const SkColor kColors0[] = {0x80F00080, 0xF0F08000, 0x800080F0 };
50 static const SkColor kColors1[] = {0xF08000F0, 0x8080F000, 0xF000F080 };
120 for (
int j = 0; j <
NY; ++j) {
121 for (
int i = 0;
i <
NX; ++
i) {
133 if (0 ==
count % 2) {
147 paint.setAntiAlias(
false);
149 for (
int i = 0;
i < loops; ++
i) {
DEF_BENCH(return new AlternatingColorPatternBench(kWhite_ColorPattern, kWhite_ColorPattern, kPath_DrawType);) DEF_BENCH(return new AlternatingColorPatternBench(kBlue_ColorPattern
kAlphaBitmap_ColorPattern
static void makebm(SkBitmap *bm, int w, int h)
static const struct ColorPatternData gColorPatterns[]
kOpaqueBitmap_ColorPattern
constexpr SkColor SK_ColorTRANSPARENT
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorWHITE
ColorPatternData fPattern1
void onDraw(int loops, SkCanvas *canvas) override
ColorPatternData fPattern2
sk_sp< SkShader > fShaders[NUM_DRAWS]
SkColor fColors[NUM_DRAWS]
const char * onGetName() override
AlternatingColorPatternBench(ColorPattern pattern1, ColorPattern pattern2, DrawType drawType)
void onDelayedSetup() override
sk_sp< SkShader > fBmShader
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 drawPaint(const SkPaint &paint)
void drawPath(const SkPath &path, const SkPaint &paint)
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)
SkPath & moveTo(SkScalar x, SkScalar y)
SkPath & rLineTo(SkScalar dx, SkScalar dy)
void printf(const char format[],...) SK_PRINTF_LIKE(2
const char * c_str() const
static float min(float r, float g, float b)
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
SkSamplingOptions(SkFilterMode::kLinear))
void setXYWH(float x, float y, float width, float height)