From 1dbd816ea6fa5027c922c1df3a09889baed3a31b Mon Sep 17 00:00:00 2001 From: bsalomon Date: Wed, 26 Nov 2014 06:06:02 -0800 Subject: [PATCH] Fix early out in GrResourceCache2::purgeAsNeeded BUG=chromium:436846 TBR=robertphillips@google.com Review URL: https://codereview.chromium.org/755193003 --- src/gpu/GrResourceCache2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/GrResourceCache2.h b/src/gpu/GrResourceCache2.h index 3c5eea5a3f..038e3bc242 100644 --- a/src/gpu/GrResourceCache2.h +++ b/src/gpu/GrResourceCache2.h @@ -167,7 +167,7 @@ private: /// @} void purgeAsNeeded() { - if (fPurging || (fBudgetedCount <= fMaxCount && fBudgetedBytes < fMaxBytes)) { + if (fPurging || (fBudgetedCount <= fMaxCount && fBudgetedBytes <= fMaxBytes)) { return; } this->internalPurgeAsNeeded();