24 , fName(
"draw_bitmap_") {
37 surf->getCanvas()->clear(0xFF00FF00);
38 fImage = surf->makeImageSnapshot();
44 for (
int i = 0;
i < loops;
i++) {
DEF_BENCH(return new DrawBitmapAABench(false, SkMatrix::I(), "ident");) DEF_BENCH(return new DrawBitmapAABench(false
return new DrawBitmapAABench(false, m, "rotate")
DrawBitmapAABench(bool doAA, const SkMatrix &matrix, const char name[])
void onDelayedSetup() override
const char * onGetName() override
void onDraw(int loops, SkCanvas *canvas) override
void concat(const SkMatrix &matrix)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static SkMatrix Scale(SkScalar sx, SkScalar sy)
static SkMatrix Translate(SkScalar dx, SkScalar dy)
static const SkMatrix & I()
void setAntiAlias(bool aa)
const char * c_str() const
void void void appendf(const char format[],...) SK_PRINTF_LIKE(2
unsigned useCenter Optional< SkMatrix > matrix
SkSamplingOptions sampling
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
DEF_SWITCHES_START aot vmservice shared library name
static SkImageInfo MakeN32Premul(int width, int height)