• Home
  • Raw
  • Download

Lines Matching refs:deserializer

166 bool read_path(Deserializer* deserializer, SkGlyph* glyph, SkStrike* cache) {  in read_path()  argument
168 if (!deserializer->read<uint64_t>(&pathSize)) return false; in read_path()
172 auto* path = deserializer->read(pathSize, kPathAlignment); in read_path()
596 static bool readGlyph(SkTLazy<SkGlyph>& glyph, Deserializer* deserializer) { in readGlyph() argument
598 if (!deserializer->read<SkPackedGlyphID>(&glyphID)) return false; in readGlyph()
600 if (!deserializer->read<float>(&glyph->fAdvanceX)) return false; in readGlyph()
601 if (!deserializer->read<float>(&glyph->fAdvanceY)) return false; in readGlyph()
602 if (!deserializer->read<uint16_t>(&glyph->fWidth)) return false; in readGlyph()
603 if (!deserializer->read<uint16_t>(&glyph->fHeight)) return false; in readGlyph()
604 if (!deserializer->read<int16_t>(&glyph->fTop)) return false; in readGlyph()
605 if (!deserializer->read<int16_t>(&glyph->fLeft)) return false; in readGlyph()
606 if (!deserializer->read<int8_t>(&glyph->fForceBW)) return false; in readGlyph()
607 if (!deserializer->read<uint8_t>(&glyph->fMaskFormat)) return false; in readGlyph()
613 Deserializer deserializer(static_cast<const volatile char*>(memory), memorySize); in readStrikeData()
616 if (!deserializer.read<uint64_t>(&typefaceSize)) READ_FAILURE in readStrikeData()
620 if (!deserializer.read<WireTypeface>(&wire)) READ_FAILURE in readStrikeData()
629 if (!deserializer.read<uint64_t>(&strikeCount)) READ_FAILURE in readStrikeData()
633 if (!deserializer.read<bool>(&has_glyphs)) READ_FAILURE in readStrikeData()
638 if (!deserializer.read<StrikeSpec>(&spec)) READ_FAILURE in readStrikeData()
641 if (!deserializer.readDescriptor(&sourceAd)) READ_FAILURE in readStrikeData()
644 if (!deserializer.read<SkFontMetrics>(&fontMetrics)) READ_FAILURE in readStrikeData()
673 if (!deserializer.read<uint64_t>(&glyphImagesCount)) READ_FAILURE in readStrikeData()
676 if (!readGlyph(glyph, &deserializer)) READ_FAILURE in readStrikeData()
691 auto* image = deserializer.read(imageSize, allocatedGlyph->formatAlignment()); in readStrikeData()
697 if (!deserializer.read<uint64_t>(&glyphPathsCount)) READ_FAILURE in readStrikeData()
700 if (!readGlyph(glyph, &deserializer)) READ_FAILURE in readStrikeData()
712 if (!read_path(&deserializer, allocatedGlyph, strike.get())) READ_FAILURE in readStrikeData()