8#ifndef SkImageGenerator_DEFINED
9#define SkImageGenerator_DEFINED
18#if defined(SK_GRAPHITE)
36 uint32_t
uniqueID()
const {
return fUniqueID; }
46 return this->onRefEncodedData();
59 return this->onIsValid(context);
66 return this->onIsProtected();
140 const uint32_t fUniqueID;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
virtual bool isTextureGenerator() const
const SkImageInfo & getInfo() const
virtual bool onIsValid(GrRecordingContext *) const
virtual sk_sp< SkData > onRefEncodedData()
virtual bool onGetYUVAPlanes(const SkYUVAPixmaps &)
virtual ~SkImageGenerator()
virtual bool onQueryYUVAInfo(const SkYUVAPixmapInfo::SupportedDataTypes &, SkYUVAPixmapInfo *) const
virtual bool onGetPixels(const SkImageInfo &, void *, size_t, const Options &)
bool isValid(GrRecordingContext *context) const
bool getPixels(const SkPixmap &pm)
sk_sp< SkData > refEncodedData()
virtual bool onIsProtected() const
uint32_t uniqueID() const
const SkImageInfo & info() const
void * writable_addr() const