Reads enough of the input stream to decode the bounds.
165 {
168 return false;
169 }
170
171 png_set_progressive_read_fn(fPng_ptr, nullptr, nullptr, nullptr, nullptr);
172
173
174
175
178
179 {
180
182 return false;
183 }
184
185 png_process_data(fPng_ptr, fInfo_ptr, (png_bytep)
buffer, 8);
186 }
187
188 while (true) {
189
191
192 break;
193 }
194
195 png_byte* chunk =
reinterpret_cast<png_byte*
>(
buffer);
196 const size_t length = png_get_uint_32(chunk);
197
199 this->infoCallback(
length);
200 return true;
201 }
202
203 png_process_data(fPng_ptr, fInfo_ptr, chunk, 8);
204
206 return false;
207 }
208 }
209
210 return false;
211}
static bool process_data(png_structp png_ptr, png_infop info_ptr, SkStream *stream, void *buffer, size_t bufferSize, size_t length)
static bool is_chunk(const png_byte *chunk, const char *tag)
static const size_t kBufferSize
virtual size_t read(void *buffer, size_t size)=0
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer