46 paint.setAntiAlias(
true);
50 for (
int y = -
H*2;
y <
H;
y += 50) {
57 for (
int x = -
W;
x <
W;
x += 60) {
97 str.
append(fDoFilter ?
"_bilerp" :
"_point");
98 str.
append(fDoRotate ?
"_rotate" :
"_scale");
114 paint.setShader(getBitmap().makeShader(
126 using INHERITED =
GM;
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorGREEN
constexpr SkColor SK_ColorWHITE
GiantBitmapGM(SkTileMode mode, bool doFilter, bool doRotate)
SkString getName() const override
SkISize getISize() override
void onDraw(SkCanvas *canvas) override
~GiantBitmapGM() override
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 drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
void append(const char text[])
GM(SkColor backgroundColor=SK_ColorWHITE)
PODArray< SkColor > colors
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
SkSamplingOptions(SkFilterMode::kLinear))
static constexpr SkISize Make(int32_t w, int32_t h)