Fix early out in GrResourceCache2::purgeAsNeeded
authorbsalomon <bsalomon@google.com>
Wed, 26 Nov 2014 14:06:02 +0000 (06:06 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 26 Nov 2014 14:06:02 +0000 (06:06 -0800)
BUG=chromium:436846
TBR=robertphillips@google.com

Review URL: https://codereview.chromium.org/755193003

src/gpu/GrResourceCache2.h

index 3c5eea5..038e3bc 100644 (file)
@@ -167,7 +167,7 @@ private:
     /// @}
 
     void purgeAsNeeded() {
-        if (fPurging || (fBudgetedCount <= fMaxCount && fBudgetedBytes < fMaxBytes)) {
+        if (fPurging || (fBudgetedCount <= fMaxCount && fBudgetedBytes <= fMaxBytes)) {
             return;
         }
         this->internalPurgeAsNeeded();