15#define FILTER_WIDTH_SMALL SkIntToScalar(32)
16#define FILTER_HEIGHT_SMALL SkIntToScalar(32)
17#define FILTER_WIDTH_LARGE SkIntToScalar(256)
18#define FILTER_HEIGHT_LARGE SkIntToScalar(256)
22 surface->getCanvas()->clear(0x00000000);
24 paint.setColor(0xFF884422);
28 return surface->makeImageSnapshot();
34 canvas->
clear(0x00000000);
39 for (
int y = 0;
y < 80;
y += 16) {
40 for (
int x = 0;
x < 80;
x += 16) {
51 return surface->makeImageSnapshot();
60 return fIsSmall ?
"merge_small" :
"merge_large";
78 for (
int i = 0;
i < loops;
i++) {
#define FILTER_WIDTH_SMALL
static sk_sp< SkImage > make_checkerboard()
#define FILTER_WIDTH_LARGE
#define FILTER_HEIGHT_SMALL
static sk_sp< SkImage > make_bitmap()
#define FILTER_HEIGHT_LARGE
@ kUTF8
uses bytes to represent UTF-8 or ASCII
const char * onGetName() override
void onDelayedSetup() override
void onDraw(int loops, SkCanvas *canvas) override
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void clear(SkColor color)
static sk_sp< SkImageFilter > Merge(sk_sp< SkImageFilter > *const filters, int count, const CropRect &cropRect={})
static sk_sp< SkImageFilter > Image(sk_sp< SkImage > image, const SkRect &srcRect, const SkRect &dstRect, const SkSamplingOptions &sampling)
void setColor(SkColor color)
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
font
Font Metadata and Metrics.
static SkImageInfo MakeN32Premul(int width, int height)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeWH(float w, float h)