34 {
35 if (!fSurface) {
37 if (!context) {
38 return;
39 }
43
44
48 0,
50 nullptr,
51 true);
52 }
53
54
56
61 for (
int i = 0;
i < loops;
i++) {
62
64
65
67 canvas->
scale(0.1f, 0.1f);
70 }
71 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kBottomLeft_GrSurfaceOrigin
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorWHITE
void drawPoint(SkScalar x, SkScalar y, const SkPaint &paint)
virtual GrRecordingContext * recordingContext() const
void clear(SkColor color)
void scale(SkScalar sx, SkScalar sy)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkColorSpace > MakeSRGB()
sk_sp< SkImage > makeImageSnapshot()
SkSamplingOptions sampling
SK_API sk_sp< SkSurface > RenderTarget(GrRecordingContext *context, skgpu::Budgeted budgeted, const SkImageInfo &imageInfo, int sampleCount, GrSurfaceOrigin surfaceOrigin, const SkSurfaceProps *surfaceProps, bool shouldCreateWithMips=false, bool isProtected=false)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)