16 fName.
set(
"native_image_to_raster_surface");
36 fImage =
surface->makeImageSnapshot();
46 fRasterSurface.
reset(
nullptr);
47 fImage.
reset(
nullptr);
51 for (
int i = 0;
i < loops;
i++) {
52 for (
int inner = 0; inner < 10; ++inner) {
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
constexpr SkColor SK_ColorRED
const char * onGetName() override
bool isSuitableFor(Backend backend) override
void onDraw(int loops, SkCanvas *) override
void onPerCanvasPostDraw(SkCanvas *) override
void onPerCanvasPreDraw(SkCanvas *canvas) override
sk_sp< SkSurface > makeSurface(const SkImageInfo &info, const SkSurfaceProps *props=nullptr)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
SkImageInfo imageInfo() const
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
void set(const SkString &src)
const char * c_str() const
void reset(T *ptr=nullptr)
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
SkImageInfo makeWH(int newWidth, int newHeight) const
static SkImageInfo MakeN32Premul(int width, int height)