109 {
110 if (
size != targetSize) {
111
112
113 const AImageDecoderHeaderInfo* headerInfo = AImageDecoder_getHeaderInfo(decoder);
114 const char* mimeType = AImageDecoderHeaderInfo_getMimeType(headerInfo);
115 if (0 == strcmp(mimeType, "image/jpeg")) {
116 bool supported = false;
117 for (int sampleSize : { 2, 4, 8 }) {
120 if (
ok(AImageDecoder_computeSampledSize(decoder, sampleSize, &
width, &
height))
122 supported = true;
123 break;
124 }
125 }
126 if (!supported) return false;
127 } else if (0 == strcmp(mimeType, "image/webp")) {
128
130 return false;
131 }
132 } else {
133 return false;
134 }
135 }
136 return ok(AImageDecoder_setTargetSize(decoder, targetSize.
width(), targetSize.
height()));
137}
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
static constexpr SkISize Make(int32_t w, int32_t h)
constexpr int32_t width() const
constexpr int32_t height() const