Searched refs:wouldFit (Results 1 – 4 of 4) sorted by relevance
271 bool wouldFit(size_t bytes) { in wouldFit() function
284 if (fPreferVRAMUseOverFlushes && this->wouldFit(resourceSize)) { in findAndRefScratchResource()
276 bool wouldFit(size_t bytes) const { return fBudgetedBytes+bytes <= fMaxBytes; } in wouldFit() function
464 if (this->wouldFit(resource->gpuMemorySize())) { in notifyARefCntReachedZero()639 if (this->wouldFit(desiredHeadroomBytes)) { in purgeToMakeHeadroom()