Home
last modified time | relevance | path

Searched refs:wstream (Results 1 – 9 of 9) sorted by relevance

/third_party/skia/src/utils/
DSkCustomTypeface.cpp319 SkDynamicMemoryWStream wstream; in onOpenStream() local
321 wstream.write(gHeaderString, kHeaderSize); in onOpenStream()
323 wstream.write(&fMetrics, sizeof(fMetrics)); in onOpenStream()
326 wstream.write(&style, sizeof(style)); in onOpenStream()
331 wstream.write32(this->glyphCount()); in onOpenStream()
335 write_scaled_float_to_16(&wstream, a, 2048); in onOpenStream()
338 wstream.write(fAdvances.data(), this->glyphCount() * sizeof(float)); in onOpenStream()
343 compress_write(&wstream, p, 2048); in onOpenStream()
347 wstream.write(data->data(), data->size()); in onOpenStream()
352 return wstream.detachAsStream(); in onOpenStream()
DSkJSON.cpp905 SkDynamicMemoryWStream wstream; in toString() local
906 Write(*this, &wstream); in toString()
907 const auto data = wstream.detachAsData(); in toString()
/third_party/skia/tests/
DCodecRecommendedTypeTest.cpp32 SkDynamicMemoryWStream wstream; in DEF_TEST() local
33 REPORTER_ASSERT(r, SkEncodeImage(&wstream, bm, SkEncodedImageFormat::kPNG, 100)); in DEF_TEST()
34 auto data = wstream.detachAsData(); in DEF_TEST()
DStreamTest.cpp159 SkDynamicMemoryWStream wstream; in TestPackedUInt() local
162 bool success = wstream.writePackedUInt(sizes[i]); in TestPackedUInt()
166 std::unique_ptr<SkStreamAsset> rstream(wstream.detachAsStream()); in TestPackedUInt()
DPictureTest.cpp717 SkDynamicMemoryWStream wstream; in DEF_TEST() local
718 picture->serialize(&wstream); in DEF_TEST()
720 std::unique_ptr<SkStream> rstream(wstream.detachAsStream()); in DEF_TEST()
DSerializationTest.cpp737 SkDynamicMemoryWStream wstream; in copy_picture_via_serialization() local
738 src->serialize(&wstream); in copy_picture_via_serialization()
739 std::unique_ptr<SkStreamAsset> rstream(wstream.detachAsStream()); in copy_picture_via_serialization()
/third_party/skia/fuzz/oss_fuzz/
DFuzzJSON.cpp14 SkDynamicMemoryWStream wstream; in FuzzJSON() local
15 dom.write(&wstream); in FuzzJSON()
/third_party/skia/src/core/
DSkTypeface.cpp225 void SkTypeface::serialize(SkWStream* wstream, SerializeBehavior behavior) const { in serialize() argument
252 desc.serialize(wstream); in serialize()
/third_party/skia/dm/
DDMSrcSink.cpp2392 SkDynamicMemoryWStream wstream; in draw() local
2393 SkXMLStreamWriter writer(&wstream); in draw()
2398 std::unique_ptr<SkStream> rstream(wstream.detachAsStream()); in draw()