Searched refs:TAlign (Results 1 – 1 of 1) sorted by relevance
13 template<typename TBase, typename TAlign> class GrTRecorder;45 template<typename TBase, typename TAlign> class GrTRecorder : SkNoncopyable {94 const TAlign* ptr = reinterpret_cast<const TAlign*>(item); in GetDataForItem()98 TAlign* ptr = reinterpret_cast<TAlign*>(item); in GetDataForItem()104 enum { kValue = (sizeof(TItem) + sizeof(TAlign) - 1) / sizeof(TAlign) };106 static int LengthOf(int bytes) { return (bytes + sizeof(TAlign) - 1) / sizeof(TAlign); } in LengthOf()119 sk_malloc_throw(sizeof(TAlign) * (length_of<MemBlock>::kValue + length))); in Alloc()144 TAlign& operator [](int i) {145 return reinterpret_cast<TAlign*>(this)[length_of<MemBlock>::kValue + i];170 template<typename TBase, typename TAlign>[all …]