8#ifndef SkAndroidCodec_DEFINED
9#define SkAndroidCodec_DEFINED
57 static std::unique_ptr<SkAndroidCodec> MakeFromCodec(std::unique_ptr<SkCodec>);
69 static std::unique_ptr<SkAndroidCodec>
MakeFromStream(std::unique_ptr<SkStream>,
91 return fCodec->getEncodedInfo().profile();
119 SkAlphaType computeOutputAlphaType(
bool requestedUnpremul);
159 SkISize getSampledDimensions(
int sampleSize)
const;
181 bool getSupportedSubset(
SkIRect* desiredSubset)
const;
196 SkISize getSampledSubsetDimensions(
int sampleSize,
const SkIRect& subset)
const;
261 return this->getAndroidPixels(
info, pixels, rowBytes);
281 std::unique_ptr<SkStream>* outGainmapImageStream);
295 std::unique_ptr<SkCodec> fCodec;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
virtual SkCodec::Result onGetAndroidPixels(const SkImageInfo &info, void *pixels, size_t rowBytes, const AndroidOptions &options)=0
SkEncodedImageFormat getEncodedFormat() const
const SkImageInfo & getInfo() const
SkCodec::Result getPixels(const SkImageInfo &info, void *pixels, size_t rowBytes)
virtual SkISize onGetSampledDimensions(int sampleSize) const =0
const skcms_ICCProfile * getICCProfile() const
virtual bool onGetSupportedSubset(SkIRect *desiredSubset) const =0
std::unique_ptr< SkCodec > MakeFromStream(std::unique_ptr< SkStream > stream, SkCodec::SelectionPolicy selectionPolicy, SkCodec::Result *result)
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