Lines Matching refs:TItem
15 template<typename TItem> struct GrTRecorderAllocWrapper;
94 template<typename TItem> static const void* GetDataForItem(const TItem* item) { in GetDataForItem()
96 return &ptr[length_of<TItem>::kValue]; in GetDataForItem()
98 template<typename TItem> static void* GetDataForItem(TItem* item) { in GetDataForItem()
100 return &ptr[length_of<TItem>::kValue]; in GetDataForItem()
104 template<typename TItem> struct length_of {
105 enum { kValue = (sizeof(TItem) + sizeof(TAlign) - 1) / sizeof(TAlign) };
113 template<typename TItem> void* alloc_back(int dataLength);
159 template<typename TItem> friend struct GrTRecorderAllocWrapper;
197 template<typename TItem>
208 const int totalLength = length_of<Header>::kValue + length_of<TItem>::kValue + dataLength; in alloc_back()
361 template<typename TItem> struct GrTRecorderAllocWrapper {
371 template <typename TBase, typename TAlign, typename TItem>
373 const GrTRecorderAllocWrapper<TItem>& wrapper) { in new()
374 SkASSERT(size == sizeof(TItem)); in new()
375 return recorder.template alloc_back<TItem>(wrapper.fDataLength); in new()
378 template <typename TBase, typename TAlign, typename TItem>
379 void operator delete(void*, GrTRecorder<TBase, TAlign>&, const GrTRecorderAllocWrapper<TItem>&) { in delete() argument