38 int count()
const {
return fHistogram[T::kType]; }
41 for (
int i = 0;
i < record.
count();
i++) {
sk_bzero(glyphs, sizeof(glyphs))
static const int kRecordTypes
constexpr SkColor SK_ColorGREEN
#define SK_RECORD_TYPES(M)
#define REPORTER_ASSERT(r, cond,...)
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void drawRect(const SkRect &rect, const SkPaint &paint)
@ kFast_SrcRectConstraint
sample outside bounds; faster
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
SkImageInfo imageInfo() const
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
auto visit(int i, F &&f) const -> decltype(f(SkRecords::NoOp()))
void apply(const SkRecord &record)
void operator()(const T &)
Optional< SkRect > bounds
sk_sp< const SkImage > image
SK_API sk_sp< SkShader > Empty()
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
SK_API void DrawImageRect(SkCanvas *canvas, const SkImage *image, const SkRect &src, const SkRect &dst, const SkSamplingOptions &sampling={}, const SkPaint *paint=nullptr, SkCanvas::SrcRectConstraint constraint=SkCanvas::kFast_SrcRectConstraint)
static SkImageInfo MakeN32Premul(int width, int height)
static constexpr SkRect MakeWH(float w, float h)