Lines Matching refs:get_block
28 static Block* get_block(GrSBlockAllocator<N>& pool, int blockIndex) { in get_block() function
325 get_block(pool, 0)->setMetadata(2); in DEF_TEST()
334 REPORTER_ASSERT(r, get_block(pool, 0)->metadata() == 0); in DEF_TEST()
357 get_block(pool, 0)->setMetadata(1); in DEF_TEST()
358 get_block(pool, 1)->setMetadata(2); in DEF_TEST()
359 get_block(pool, 2)->setMetadata(3); in DEF_TEST()
360 get_block(pool, 3)->setMetadata(4); in DEF_TEST()
365 pool->releaseBlock(get_block(pool, 1)); in DEF_TEST()
367 REPORTER_ASSERT(r, get_block(pool, 1)->metadata() == 3); in DEF_TEST()
370 pool->releaseBlock(get_block(pool, 1)); in DEF_TEST()
372 REPORTER_ASSERT(r, get_block(pool, 1)->metadata() == 4); in DEF_TEST()
375 pool->releaseBlock(get_block(pool, 1)); in DEF_TEST()
384 pool->releaseBlock(get_block(pool, 1)); in DEF_TEST()
387 pool->releaseBlock(get_block(pool, 0)); in DEF_TEST()
391 REPORTER_ASSERT(r, get_block(pool, 0)->metadata() == 0); // metadata reset too in DEF_TEST()
397 pool->releaseBlock(get_block(pool, 0)); in DEF_TEST()