Lines Matching refs:advances
42 int16_t findMode(SkSpan<const int16_t> advances) { in findMode() argument
43 if (advances.empty()) { in findMode()
47 int16_t previousAdvance = advances[0]; in findMode()
48 int16_t currentModeAdvance = advances[0]; in findMode()
52 for (size_t i = 1; i < advances.size(); ++i) { in findMode()
53 if (advances[i] == previousAdvance) { in findMode()
60 previousAdvance = advances[i]; in findMode()
117 std::vector<int16_t> advances; in SkPDFMakeCIDGlyphWidthsArray() local
118 advances.reserve_back(glyphs.size()); in SkPDFMakeCIDGlyphWidthsArray()
120 advances.push_back((int16_t)glyph->advanceX()); in SkPDFMakeCIDGlyphWidthsArray()
122 std::sort(advances.begin(), advances.end()); in SkPDFMakeCIDGlyphWidthsArray()
123 int16_t modeAdvance = findMode(SkMakeSpan(advances)); in SkPDFMakeCIDGlyphWidthsArray()