Lines Matching defs:hash
44 // Shape bits should be set to zeroes, because they are used for hash calculation.
56 // Shape bits should be set to zeroes, because they are used for hash calculation.
78 hash_t TessellationCache::Description::hash() const {
79 uint32_t hash = JenkinsHashMix(0, static_cast<int>(type));
80 hash = JenkinsHashMix(hash, aa);
81 hash = JenkinsHashMix(hash, cap);
82 hash = JenkinsHashMix(hash, style);
83 hash = JenkinsHashMix(hash, android::hash_type(strokeWidth));
84 hash = JenkinsHashMix(hash, android::hash_type(scaleX));
85 hash = JenkinsHashMix(hash, android::hash_type(scaleY));
86 hash = JenkinsHashMixBytes(hash, (uint8_t*)&shape, sizeof(Shape));
87 return JenkinsHashWhiten(hash);
113 hash_t TessellationCache::ShadowDescription::hash() const {
114 uint32_t hash = JenkinsHashMixBytes(0, (uint8_t*)&nodeKey, sizeof(const void*));
115 hash = JenkinsHashMixBytes(hash, (uint8_t*)&matrixData, sizeof(matrixData));
116 return JenkinsHashWhiten(hash);