Searched refs:reserveCount (Results 1 – 4 of 4) sorted by relevance
/external/skqp/tests/ |
D | TArrayTest.cpp | 198 Array* array, int reserveCount) { in test_array_reserve() argument 200 REPORTER_ASSERT(reporter, array->allocCntForTest() >= reserveCount); in test_array_reserve() 202 REPORTER_ASSERT(reporter, array->allocCntForTest() >= reserveCount); in test_array_reserve() 204 REPORTER_ASSERT(reporter, array->allocCntForTest() >= reserveCount); in test_array_reserve() 205 while (array->count() < reserveCount) { in test_array_reserve() 212 REPORTER_ASSERT(reporter, array->allocCntForTest() >= reserveCount); in test_array_reserve() 219 for (int reserveCount : {1, 2, 10, 100}) { in test_reserve() 221 Array array1(reserveCount); in test_reserve() 222 test_array_reserve(reporter, &array1, reserveCount); in test_reserve() 226 array2.reserve(reserveCount); in test_reserve() [all …]
|
/external/skia/tests/ |
D | TArrayTest.cpp | 300 Array* array, int reserveCount) { in test_array_reserve() argument 302 REPORTER_ASSERT(reporter, array->capacity() >= reserveCount); in test_array_reserve() 304 REPORTER_ASSERT(reporter, array->capacity() >= reserveCount); in test_array_reserve() 306 REPORTER_ASSERT(reporter, array->capacity() >= reserveCount); in test_array_reserve() 307 while (array->count() < reserveCount) { in test_array_reserve() 314 REPORTER_ASSERT(reporter, array->capacity() >= reserveCount); in test_array_reserve() 321 for (int reserveCount : {1, 2, 10, 100}) { in test_reserve() 323 Array array1(reserveCount); in test_reserve() 324 test_array_reserve(reporter, &array1, reserveCount); in test_reserve() 328 array2.reserve_back(reserveCount); in test_reserve() [all …]
|
/external/skqp/include/private/ |
D | SkTArray.h | 35 explicit SkTArray(int reserveCount) { this->init(0, reserveCount); } in SkTArray() argument 443 void init(int count = 0, int reserveCount = 0) { 445 SkASSERT(reserveCount >= 0); 447 if (!count && !reserveCount) { 453 fAllocCount = SkTMax(count, SkTMax(kMinHeapAllocCount, reserveCount)); 456 fReserved = reserveCount > 0; 605 explicit SkSTArray(int reserveCount) in SkSTArray() argument 606 : INHERITED(reserveCount) { in SkSTArray()
|
/external/skia/include/private/ |
D | SkTArray.h | 51 explicit SkTArray(int reserveCount) : SkTArray() { this->reserve_back(reserveCount); } in SkTArray() argument 611 explicit SkSTArray(int reserveCount) in SkSTArray() argument 613 this->reserve_back(reserveCount); in SkSTArray()
|