Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: sky/engine/platform/heap/Handle.h

Issue 683703003: Remove various Heap* types. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/platform/Supplementable.h ('k') | sky/engine/platform/heap/Heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/heap/Handle.h
diff --git a/sky/engine/platform/heap/Handle.h b/sky/engine/platform/heap/Handle.h
index 1afc75471301f5904a927dab5547f3be405d7ade..4c59d7044fc811fb0368c6896022d9be0aa8371d 100644
--- a/sky/engine/platform/heap/Handle.h
+++ b/sky/engine/platform/heap/Handle.h
@@ -606,30 +606,6 @@ template <typename T> struct VectorTraits<blink::WeakMember<T> > : VectorTraitsB
static const bool canMoveWithMemcpy = true;
};
-template <typename T> struct VectorTraits<blink::HeapVector<T, 0> > : VectorTraitsBase<blink::HeapVector<T, 0> > {
- static const bool needsDestruction = false;
- static const bool canInitializeWithMemset = true;
- static const bool canMoveWithMemcpy = true;
-};
-
-template <typename T> struct VectorTraits<blink::HeapDeque<T, 0> > : VectorTraitsBase<blink::HeapDeque<T, 0> > {
- static const bool needsDestruction = false;
- static const bool canInitializeWithMemset = true;
- static const bool canMoveWithMemcpy = true;
-};
-
-template <typename T, size_t inlineCapacity> struct VectorTraits<blink::HeapVector<T, inlineCapacity> > : VectorTraitsBase<blink::HeapVector<T, inlineCapacity> > {
- static const bool needsDestruction = VectorTraits<T>::needsDestruction;
- static const bool canInitializeWithMemset = VectorTraits<T>::canInitializeWithMemset;
- static const bool canMoveWithMemcpy = VectorTraits<T>::canMoveWithMemcpy;
-};
-
-template <typename T, size_t inlineCapacity> struct VectorTraits<blink::HeapDeque<T, inlineCapacity> > : VectorTraitsBase<blink::HeapDeque<T, inlineCapacity> > {
- static const bool needsDestruction = VectorTraits<T>::needsDestruction;
- static const bool canInitializeWithMemset = VectorTraits<T>::canInitializeWithMemset;
- static const bool canMoveWithMemcpy = VectorTraits<T>::canMoveWithMemcpy;
-};
-
template<typename T> struct HashTraits<blink::Member<T> > : SimpleClassHashTraits<blink::Member<T> > {
static const bool needsDestruction = false;
// FIXME: The distinction between PeekInType and PassInType is there for
@@ -741,14 +717,6 @@ template<typename T> inline T* getPtr(const blink::Persistent<T>& p)
return p.get();
}
-template<typename T, size_t inlineCapacity>
-struct NeedsTracing<ListHashSetNode<T, blink::HeapListHashSetAllocator<T, inlineCapacity> > *> {
- // All heap allocated node pointers need visiting to keep the nodes alive,
- // regardless of whether they contain pointers to other heap allocated
- // objects.
- static const bool value = true;
-};
-
// For wtf/Functional.h
template<typename T, bool isGarbageCollected> struct PointerParamStorageTraits;
« no previous file with comments | « sky/engine/platform/Supplementable.h ('k') | sky/engine/platform/heap/Heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698