Home
last modified time | relevance | path

Searched defs:HashTraits (Results 1 – 3 of 3) sorted by relevance

/external/skia/src/core/
DSkPictureFlat.h338 struct HashTraits { struct
339 static const SkFlatData& GetKey(const SkFlatData& flat) { return flat; } in GetKey()
340 static uint32_t Hash(const SkFlatData& flat) { return flat.checksum(); } in Hash()
/external/chromium_org/third_party/skia/src/core/
DSkPictureFlat.h341 struct HashTraits { struct
342 static const SkFlatData& GetKey(const SkFlatData& flat) { return flat; } in GetKey()
343 static uint32_t Hash(const SkFlatData& flat) { return flat.checksum(); } in Hash()
/external/chromium_org/third_party/WebKit/Source/platform/heap/
DHeapTest.cpp160 template<> struct HashTraits<blink::ThreadMarker> : GenericHashTraits<blink::ThreadMarker> { struct
161 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… struct
182 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 …]