Home | History | Annotate | Download | only in core

Lines Matching defs:SkTRefArray

2 //  SkTRefArray.h
19 template <typename T> class SkTRefArray : public SkRefCnt {
25 static SkTRefArray<T>* Alloc(int count) {
27 size_t size = sizeof(SkTRefArray<T>) + count * sizeof(T);
28 SkTRefArray<T>* obj = (SkTRefArray<T>*)sk_malloc_throw(size);
30 SkNEW_PLACEMENT(obj, SkTRefArray<T>);
41 static SkTRefArray<T>* Create(int count) {
42 SkTRefArray<T>* obj = Alloc(count);
55 static SkTRefArray<T>* Create(const T src[], int count) {
56 SkTRefArray<T>* obj = Alloc(count);
99 this->~SkTRefArray<T>();
107 virtual ~SkTRefArray() {}