Home
last modified time | relevance | path

Searched refs:reserveCount (Results 1 – 4 of 4) sorted by relevance

/external/skia/tests/
DTArrayTest.cpp198 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/skqp/tests/
DTArrayTest.cpp198 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/include/private/
DSkTArray.h35 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/skqp/include/private/
DSkTArray.h35 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()