• Home
  • Raw
  • Download

Lines Matching full:hash

51     explicit ParagraphCacheKey(uint32_t hash) : fHash(hash) {}  in ParagraphCacheKey()  argument
55 uint32_t hash() const { return fHash; } in hash() function in skia::textlayout::ParagraphCacheKey
60 static uint32_t mix(uint32_t hash, uint32_t data);
110 // criteria to apply the layout cache, should presumably hash it, same
111 // hash could be used to check if the entry has cached layout available
122 uint32_t ParagraphCacheKey::mix(uint32_t hash, uint32_t data) { in mix() argument
123 hash += data; in mix()
124 hash += (hash << 10); in mix()
125 hash ^= (hash >> 6); in mix()
126 return hash; in mix()
130 uint32_t hash = 0; in computeHash() local
135 hash = mix(hash, SkGoodHash()(ph.fRange)); in computeHash()
136 hash = mix(hash, SkGoodHash()(relax(ph.fStyle.fHeight))); in computeHash()
137 hash = mix(hash, SkGoodHash()(relax(ph.fStyle.fWidth))); in computeHash()
138 hash = mix(hash, SkGoodHash()(ph.fStyle.fAlignment)); in computeHash()
139 hash = mix(hash, SkGoodHash()(ph.fStyle.fBaseline)); in computeHash()
141 hash = mix(hash, SkGoodHash()(relax(ph.fStyle.fBaselineOffset))); in computeHash()
149 hash = mix(hash, SkGoodHash()(relax(ts.fStyle.getLetterSpacing()))); in computeHash()
150 hash = mix(hash, SkGoodHash()(relax(ts.fStyle.getWordSpacing()))); in computeHash()
151 hash = mix(hash, SkGoodHash()(ts.fStyle.getLocale())); in computeHash()
152 hash = mix(hash, SkGoodHash()(relax(ts.fStyle.getHeight()))); in computeHash()
153 hash = mix(hash, SkGoodHash()(relax(ts.fStyle.getBaselineShift()))); in computeHash()
154 hash = mix(hash, SkGoodHash()(relax(ts.fStyle.getHalfLeading()))); in computeHash()
156 hash = mix(hash, SkGoodHash()(ff)); in computeHash()
159 hash = mix(hash, SkGoodHash()(ff.fValue)); in computeHash()
160 hash = mix(hash, SkGoodHash()(ff.fName)); in computeHash()
162 hash = mix(hash, std::hash<std::optional<FontArguments>>()(ts.fStyle.getFontArguments())); in computeHash()
163 hash = mix(hash, SkGoodHash()(ts.fStyle.getFontStyle())); in computeHash()
164 hash = mix(hash, SkGoodHash()(relax(ts.fStyle.getFontSize()))); in computeHash()
165 hash = mix(hash, SkGoodHash()(ts.fRange)); in computeHash()
168 hash = mix(hash, SkGoodHash()(relax(fParagraphStyle.getHeight()))); in computeHash()
169 hash = mix(hash, SkGoodHash()(fParagraphStyle.getTextDirection())); in computeHash()
170 hash = mix(hash, SkGoodHash()(fParagraphStyle.getReplaceTabCharacters() ? 1 : 0)); in computeHash()
174 hash = mix(hash, SkGoodHash()(relax(strutStyle.getHeight()))); in computeHash()
175 hash = mix(hash, SkGoodHash()(relax(strutStyle.getLeading()))); in computeHash()
176 hash = mix(hash, SkGoodHash()(relax(strutStyle.getFontSize()))); in computeHash()
177 hash = mix(hash, SkGoodHash()(strutStyle.getHeightOverride())); in computeHash()
178 hash = mix(hash, SkGoodHash()(strutStyle.getFontStyle())); in computeHash()
179 hash = mix(hash, SkGoodHash()(strutStyle.getForceStrutHeight())); in computeHash()
180 hash = mix(hash, SkGoodHash()(strutStyle.getHalfLeading())); in computeHash()
182 hash = mix(hash, SkGoodHash()(ff)); in computeHash()
186 hash = mix(hash, SkGoodHash()(fText)); in computeHash()
187 return hash; in computeHash()
191 return key.hash(); in operator ()()
298 paragraph->hash() = entry->fValue->fKey.hash(); in updateTo()
307 SkDebugf("Hash miss %%: %f\n", (cacheHits > 0) ? 100.f * fHashMisses / cacheHits : 0.f); in printStatistics()
450 LOGD("ParagraphCache: cache miss, hash-%{public}d", key.hash()); in findParagraph()
460 LOGD("ParagraphCache: cache hit, hash-%{public}d", key.hash()); in findParagraph()
467 paragraph->hash() = key.hash(); in findParagraph()
491 paragraph->hash() = key.hash(); in updateParagraph()
528 paragraph->hash() = key.hash(); in cacheLayout()