/third_party/skia/src/codec/ |
D | SkAndroidCodec.cpp | 66 SkPngChunkReader* chunkReader) { in MakeFromStream() argument 67 auto codec = SkCodec::MakeFromStream(std::move(stream), nullptr, chunkReader); in MakeFromStream() 107 SkPngChunkReader* chunkReader) { in MakeFromData() argument 112 return MakeFromStream(SkMemoryStream::Make(std::move(data)), chunkReader); in MakeFromData()
|
D | SkPngCodec.cpp | 61 SkPngChunkReader* chunkReader = (SkPngChunkReader*)png_get_user_chunk_ptr(png_ptr); in sk_read_user_chunk() local 63 return chunkReader->readChunk((const char*)chunk->name, chunk->data, chunk->size) ? 1 : -1; in sk_read_user_chunk() 777 static SkCodec::Result read_header(SkStream* stream, SkPngChunkReader* chunkReader, in read_header() argument 793 AutoCleanPng autoClean(png_ptr, stream, chunkReader, outCodec); in read_header() 810 if (chunkReader) { in read_header() 812 png_set_read_user_chunk_fn(png_ptr, (png_voidp) chunkReader, sk_read_user_chunk); in read_header() 988 SkPngChunkReader* chunkReader, void* png_ptr, void* info_ptr, int bitDepth) in SkPngCodec() argument 990 , fPngChunkReader(SkSafeRef(chunkReader)) in SkPngCodec() 1199 Result* result, SkPngChunkReader* chunkReader) { in MakeFromStream() argument 1201 *result = read_header(stream.get(), chunkReader, &outCodec, nullptr, nullptr); in MakeFromStream()
|
D | SkCodec.cpp | 88 SkPngChunkReader* chunkReader, SelectionPolicy selectionPolicy) { in MakeFromStream() argument 137 return SkPngCodec::MakeFromStream(std::move(stream), outResult, chunkReader); in MakeFromStream()
|
/third_party/flutter/skia/src/codec/ |
D | SkPngCodec.cpp | 62 SkPngChunkReader* chunkReader = (SkPngChunkReader*)png_get_user_chunk_ptr(png_ptr); in sk_read_user_chunk() local 64 return chunkReader->readChunk((const char*)chunk->name, chunk->data, chunk->size) ? 1 : -1; in sk_read_user_chunk() 779 static SkCodec::Result read_header(SkStream* stream, SkPngChunkReader* chunkReader, in read_header() argument 795 AutoCleanPng autoClean(png_ptr, stream, chunkReader, outCodec); in read_header() 812 if (chunkReader) { in read_header() 814 png_set_read_user_chunk_fn(png_ptr, (png_voidp) chunkReader, sk_read_user_chunk); in read_header() 973 SkPngChunkReader* chunkReader, void* png_ptr, void* info_ptr, int bitDepth) in SkPngCodec() argument 975 , fPngChunkReader(SkSafeRef(chunkReader)) in SkPngCodec() 1185 Result* result, SkPngChunkReader* chunkReader) { in MakeFromStream() argument 1187 *result = read_header(stream.get(), chunkReader, &outCodec, nullptr, nullptr); in MakeFromStream()
|
D | SkAndroidCodec.cpp | 79 SkPngChunkReader* chunkReader) { in MakeFromStream() argument 80 auto codec = SkCodec::MakeFromStream(std::move(stream), nullptr, chunkReader); in MakeFromStream() 120 SkPngChunkReader* chunkReader) { in MakeFromData() argument 125 return MakeFromStream(SkMemoryStream::Make(std::move(data)), chunkReader); in MakeFromData()
|
D | SkCodec.cpp | 68 SkPngChunkReader* chunkReader, SelectionPolicy selectionPolicy) { in MakeFromStream() argument 117 return SkPngCodec::MakeFromStream(std::move(stream), outResult, chunkReader); in MakeFromStream()
|
/third_party/flutter/skia/tests/ |
D | CodecTest.cpp | 802 ChunkReader chunkReader(r); in DEF_TEST() local 805 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(wStream.detachAsData(), &chunkReader)); in DEF_TEST() 831 REPORTER_ASSERT(r, chunkReader.allHaveBeenSeen()); in DEF_TEST() 834 chunkReader.reset(); in DEF_TEST() 835 REPORTER_ASSERT(r, !chunkReader.allHaveBeenSeen()); in DEF_TEST() 838 REPORTER_ASSERT(r, chunkReader.allHaveBeenSeen()); in DEF_TEST()
|
/third_party/skia/tests/ |
D | CodecTest.cpp | 852 ChunkReader chunkReader(r); in DEF_TEST() local 855 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(wStream.detachAsData(), &chunkReader)); in DEF_TEST() 881 REPORTER_ASSERT(r, chunkReader.allHaveBeenSeen()); in DEF_TEST() 884 chunkReader.reset(); in DEF_TEST() 885 REPORTER_ASSERT(r, !chunkReader.allHaveBeenSeen()); in DEF_TEST() 888 REPORTER_ASSERT(r, chunkReader.allHaveBeenSeen()); in DEF_TEST()
|