25 surface->getCanvas()->drawCircle(50, 50, 50,
p);
50 , fColor{opaque ? 0xff00ff00 : 0x8000ff00} {
67 for (
int i = 0;
i < loops; ++
i) {
static sk_sp< SkShader > make_picture_shader()
static sk_sp< SkShader > make_bitmap_shader()
constexpr SkColor SK_ColorBLACK
#define SkColorGetA(color)
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
ShaderMFBench(const char *nm, bool opaque, const ShaderMaker maker)
void onDelayedSetup() override
sk_sp< SkShader >(*)() ShaderMaker
const char * onGetName() override
void onDraw(int loops, SkCanvas *canvas) override
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
void setMaskFilter(sk_sp< SkMaskFilter > maskFilter)
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, SkFilterMode mode, const SkMatrix *localMatrix, const SkRect *tileRect) const
static sk_sp< SkMaskFilter > Make(sk_sp< SkShader > shader)
const char * c_str() const
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
SkSamplingOptions(SkFilterMode::kLinear))
static SkImageInfo MakeN32Premul(int width, int height)