Lines Matching refs:hash
52 uint32_t hash() const { return fHash; } in hash() function in skia::textlayout::ParagraphCacheKey
57 static uint32_t mix(uint32_t hash, uint32_t data);
97 uint32_t ParagraphCacheKey::mix(uint32_t hash, uint32_t data) { in mix() argument
98 hash += data; in mix()
99 hash += (hash << 10); in mix()
100 hash ^= (hash >> 6); in mix()
101 return hash; in mix()
105 uint32_t hash = 0; in computeHash() local
110 hash = mix(hash, SkGoodHash()(ph.fRange)); in computeHash()
111 hash = mix(hash, SkGoodHash()(relax(ph.fStyle.fHeight))); in computeHash()
112 hash = mix(hash, SkGoodHash()(relax(ph.fStyle.fWidth))); in computeHash()
113 hash = mix(hash, SkGoodHash()(ph.fStyle.fAlignment)); in computeHash()
114 hash = mix(hash, SkGoodHash()(ph.fStyle.fBaseline)); in computeHash()
116 hash = mix(hash, SkGoodHash()(relax(ph.fStyle.fBaselineOffset))); in computeHash()
124 hash = mix(hash, SkGoodHash()(relax(ts.fStyle.getLetterSpacing()))); in computeHash()
125 hash = mix(hash, SkGoodHash()(relax(ts.fStyle.getWordSpacing()))); in computeHash()
126 hash = mix(hash, SkGoodHash()(ts.fStyle.getLocale())); in computeHash()
127 hash = mix(hash, SkGoodHash()(relax(ts.fStyle.getHeight()))); in computeHash()
128 hash = mix(hash, SkGoodHash()(relax(ts.fStyle.getBaselineShift()))); in computeHash()
130 hash = mix(hash, SkGoodHash()(ff)); in computeHash()
133 hash = mix(hash, SkGoodHash()(ff.fValue)); in computeHash()
134 hash = mix(hash, SkGoodHash()(ff.fName)); in computeHash()
136 hash = mix(hash, std::hash<std::optional<FontArguments>>()(ts.fStyle.getFontArguments())); in computeHash()
137 hash = mix(hash, SkGoodHash()(ts.fStyle.getFontStyle())); in computeHash()
138 hash = mix(hash, SkGoodHash()(relax(ts.fStyle.getFontSize()))); in computeHash()
139 hash = mix(hash, SkGoodHash()(ts.fRange)); in computeHash()
142 hash = mix(hash, SkGoodHash()(relax(fParagraphStyle.getHeight()))); in computeHash()
143 hash = mix(hash, SkGoodHash()(fParagraphStyle.getTextDirection())); in computeHash()
144 hash = mix(hash, SkGoodHash()(fParagraphStyle.getReplaceTabCharacters() ? 1 : 0)); in computeHash()
148 hash = mix(hash, SkGoodHash()(relax(strutStyle.getHeight()))); in computeHash()
149 hash = mix(hash, SkGoodHash()(relax(strutStyle.getLeading()))); in computeHash()
150 hash = mix(hash, SkGoodHash()(relax(strutStyle.getFontSize()))); in computeHash()
151 hash = mix(hash, SkGoodHash()(strutStyle.getHeightOverride())); in computeHash()
152 hash = mix(hash, SkGoodHash()(strutStyle.getFontStyle())); in computeHash()
153 hash = mix(hash, SkGoodHash()(strutStyle.getForceStrutHeight())); in computeHash()
155 hash = mix(hash, SkGoodHash()(ff)); in computeHash()
159 hash = mix(hash, SkGoodHash()(fText)); in computeHash()
160 return hash; in computeHash()
164 return key.hash(); in operator ()()