Lines Matching defs:pool
415 for (const GrVkCommandPool* pool : fActiveCommandPools) {
416 SkASSERT(pool != result);
418 for (const GrVkCommandPool* pool : fAvailableCommandPools) {
419 SkASSERT(pool != result);
439 GrVkCommandPool* pool = fActiveCommandPools[i];
440 if (!pool->isOpen()) {
441 GrVkPrimaryCommandBuffer* buffer = pool->getPrimaryCommandBuffer();
444 // This passes ownership of the pool to the backgroundReset call. The pool should
447 this->backgroundReset(pool);
455 GrVkCommandPool* pool = fActiveCommandPools[i];
456 if (!pool->isOpen()) {
457 GrVkPrimaryCommandBuffer* buffer = pool->getPrimaryCommandBuffer();
466 GrVkCommandPool* pool = fActiveCommandPools[i];
467 GrVkPrimaryCommandBuffer* buffer = pool->getPrimaryCommandBuffer();
504 for (GrVkCommandPool* pool : fActiveCommandPools) {
505 SkASSERT(pool->unique());
506 pool->unref();
512 for (GrVkCommandPool* pool : fAvailableCommandPools) {
513 SkASSERT(pool->unique());
514 pool->unref();
531 for (GrVkCommandPool* pool : fAvailableCommandPools) {
532 SkASSERT(pool->unique());
533 pool->unref();
538 void GrVkResourceProvider::backgroundReset(GrVkCommandPool* pool) {
540 SkASSERT(pool->unique());
541 pool->releaseResources();
543 // disconnected the GrVkGpu. In that case we do not want to push the pool back onto the cache,
544 // but instead just drop the pool.
546 pool->unref();
551 taskGroup->add([this, pool]() {
552 this->reset(pool);
555 this->reset(pool);
559 void GrVkResourceProvider::reset(GrVkCommandPool* pool) {
561 SkASSERT(pool->unique());
562 pool->reset(fGpu);
564 fAvailableCommandPools.push_back(pool);