8#ifndef SkDrawable_DEFINED
9#define SkDrawable_DEFINED
93 return this->onSnapGpuDrawHandler(backendApi,
matrix, clipBounds, bufferInfo);
108 uint32_t getGenerationID();
121 size_t approximateBytesUsed();
128 void notifyDrawingChanged();
142 kSkDrawable_Type,
data,
size, procs).release()));
152 virtual size_t onApproximateBytesUsed();
175 int32_t fGenerationID;
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
virtual ~GpuDrawHandler()
virtual void draw(const GrBackendDrawableInfo &)
SkFlattenable::Type getFlattenableType() const override
const char * getTypeName() const override
virtual SkRect onGetBounds()=0
static SkFlattenable::Type GetFlattenableType()
static sk_sp< SkDrawable > Deserialize(const void *data, size_t size, const SkDeserialProcs *procs=nullptr)
virtual void onDraw(SkCanvas *)=0
virtual std::unique_ptr< GpuDrawHandler > onSnapGpuDrawHandler(GrBackendApi, const SkMatrix &, const SkIRect &, const SkImageInfo &)
virtual std::unique_ptr< GpuDrawHandler > onSnapGpuDrawHandler(GrBackendApi, const SkMatrix &)
Factory getFactory() const override
std::unique_ptr< GpuDrawHandler > snapGpuDrawHandler(GrBackendApi backendApi, const SkMatrix &matrix, const SkIRect &clipBounds, const SkImageInfo &bufferInfo)
static sk_sp< SkFlattenable > Deserialize(Type, const void *data, size_t length, const SkDeserialProcs *procs=nullptr)
unsigned useCenter Optional< SkMatrix > matrix
SKSHAPER_API sk_sp< Factory > Factory()
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
std::shared_ptr< const fml::Mapping > data