Searched defs:HashTraits (Results 1 – 3 of 3) sorted by relevance
338 struct HashTraits { struct339 static const SkFlatData& GetKey(const SkFlatData& flat) { return flat; } in GetKey()340 static uint32_t Hash(const SkFlatData& flat) { return flat.checksum(); } in Hash()
341 struct HashTraits { struct342 static const SkFlatData& GetKey(const SkFlatData& flat) { return flat; } in GetKey()343 static uint32_t Hash(const SkFlatData& flat) { return flat.checksum(); } in Hash()
160 template<> struct HashTraits<blink::ThreadMarker> : GenericHashTraits<blink::ThreadMarker> { struct161 static const bool emptyValueIsZero = true;162 …ink::ThreadMarker& slot, bool) { new (NotNull, &slot) blink::ThreadMarker(HashTableDeletedValue); } in constructDeletedValue()163 …tic bool isDeletedValue(const blink::ThreadMarker& slot) { return slot.isHashTableDeletedValue(); } in isDeletedValue()181 template<> struct HashTraits<blink::PairWithWeakHandling> : blink::WeakHandlingHashTraits<blink::Pa… struct182 static const bool needsDestruction = false;183 static const bool hasIsEmptyValueFunction = true;184 static bool isEmptyValue(const blink::PairWithWeakHandling& value) { return !value.first; } in isEmptyValue()185 …kHandling& slot, bool) { new (NotNull, &slot) blink::PairWithWeakHandling(HashTableDeletedValue); } in constructDeletedValue()186 …sDeletedValue(const blink::PairWithWeakHandling& value) { return value.isHashTableDeletedValue(); } in isDeletedValue()[all …]