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:
parent
535776eb28
commit
1dbd816ea6
@ -167,7 +167,7 @@ private:
|
||||
/// @}
|
||||
|
||||
void purgeAsNeeded() {
|
||||
if (fPurging || (fBudgetedCount <= fMaxCount && fBudgetedBytes < fMaxBytes)) {
|
||||
if (fPurging || (fBudgetedCount <= fMaxCount && fBudgetedBytes <= fMaxBytes)) {
|
||||
return;
|
||||
}
|
||||
this->internalPurgeAsNeeded();
|
||||
|
Loading…
Reference in New Issue
Block a user