Lines Matching defs:size
18 // GrBagOfBytes parcels out bytes with a given size and alignment.
25 // Given a requestedSize round up to the smallest size that accounts for all the per block
70 template <int size>
71 using Storage = std::array<char, PlatformMinimumSizeWithOverhead(size, 1)>;
80 int size = n ? n * sizeof(T) : 1;
81 return this->allocateBytes(size, alignof(T));
90 // The largest size that can be allocated. In larger sizes, the block is rounded up to 4K
105 static constexpr size_t AlignUp(int size, int alignment) {
106 return (size + (alignment - 1)) & -alignment;
121 char* allocateBytes(int size, int alignment) {
123 if (fCapacity < size) {
124 this->needMoreBytes(size, alignment);
128 SkASSERT(fCapacity >= size);
129 fCapacity -= size;
133 // Adjust fEndByte and fCapacity give a new block starting at bytes with size.
134 void setupBytesAndCapacity(char* bytes, int size);
136 // Adjust fEndByte and fCapacity to satisfy the size and alignment request.
137 void needMoreBytes(int size, int alignment);
199 int size = SkTo<int>(src.size());
200 T* result = this->template makePODArray<T>(size);
201 for (int i = 0; i < size; i++) {
204 return {result, src.size()};
227 void* alignedBytes(int size, int alignment);