Fix early out in GrResourceCache2::purgeAsNeeded

BUG=chromium:436846
TBR=robertphillips@google.com

Review URL: https://codereview.chromium.org/755193003
This commit is contained in:
bsalomon 2014-11-26 06:06:02 -08:00 committed by Commit bot
parent 535776eb28
commit 1dbd816ea6

View File

@ -167,7 +167,7 @@ private:
/// @} /// @}
void purgeAsNeeded() { void purgeAsNeeded() {
if (fPurging || (fBudgetedCount <= fMaxCount && fBudgetedBytes < fMaxBytes)) { if (fPurging || (fBudgetedCount <= fMaxCount && fBudgetedBytes <= fMaxBytes)) {
return; return;
} }
this->internalPurgeAsNeeded(); this->internalPurgeAsNeeded();