Searched refs:GrBagOfBytes (Results 1 - 4 of 4) sorted by relevance
/third_party/skia/src/gpu/ |
H A D | GrSubRunAllocator.cpp | 15 // -- GrBagOfBytes --------------------------------------------------------------------------------- 16 GrBagOfBytes::GrBagOfBytes(char* bytes, size_t size, size_t firstHeapAllocation) in GrBagOfBytes() function in GrBagOfBytes 29 GrBagOfBytes::GrBagOfBytes(size_t firstHeapAllocation) 30 : GrBagOfBytes(nullptr, 0, firstHeapAllocation) {} 32 GrBagOfBytes::~GrBagOfBytes() { 41 GrBagOfBytes::Block::Block(char* previous, char* startOfBlock) 45 void* GrBagOfBytes [all...] |
H A D | GrSubRunAllocator.h | 18 // GrBagOfBytes parcels out bytes with a given size and alignment. 19 class GrBagOfBytes { class 21 GrBagOfBytes(char* block, size_t blockSize, size_t firstHeapAllocation); 22 explicit GrBagOfBytes(size_t firstHeapAllocation = 0); 23 ~GrBagOfBytes(); 87 // The maximum alignment supported by GrBagOfBytes. 16 seems to be a good number for alignment. 230 GrBagOfBytes fAlloc;
|
/third_party/skia/tests/ |
H A D | GrTextBlobTest.cpp | 149 // GrBagOfBytes::MinimumSizeWithOverhead(-1); // This should fail in DEF_TEST() 150 GrBagOfBytes::PlatformMinimumSizeWithOverhead(0, 16); in DEF_TEST() 151 GrBagOfBytes::PlatformMinimumSizeWithOverhead( in DEF_TEST() 153 // GrBagOfBytes::MinimumSizeWithOverhead(std::numeric_limits<int>::max() - k4K); // Fail in DEF_TEST() 154 REPORTER_ASSERT(r, GrBagOfBytes::MinimumSizeWithOverhead(0, 1, 16, 16) == 31); in DEF_TEST() 155 REPORTER_ASSERT(r, GrBagOfBytes::MinimumSizeWithOverhead(1, 1, 16, 16) == 32); in DEF_TEST() 156 REPORTER_ASSERT(r, GrBagOfBytes::MinimumSizeWithOverhead(63, 1, 16, 16) == 94); in DEF_TEST() 157 REPORTER_ASSERT(r, GrBagOfBytes::MinimumSizeWithOverhead(0, 8, 16, 16) == 24); in DEF_TEST() 158 REPORTER_ASSERT(r, GrBagOfBytes::MinimumSizeWithOverhead(1, 8, 16, 16) == 32); in DEF_TEST() 159 REPORTER_ASSERT(r, GrBagOfBytes in DEF_TEST() 211 GrSTSubRunAllocator(int firstHeapAllocation = GrBagOfBytes::PlatformMinimumSizeWithOverhead(inlineSize, 1)) GrSTSubRunAllocator() argument [all...] |
/third_party/skia/src/gpu/text/ |
H A D | GrTextBlob.cpp | 1523 size_t bytesNeededForSubRun = GrBagOfBytes::PlatformMinimumSizeWithOverhead( in Make()
|
Completed in 7 milliseconds