commit | b25ce71cb161d828846a5b3aea86e850e8227cbf | [log] [tgz] |
---|---|---|
author | Robert Phillips <robertphillips@google.com> | Tue Jun 29 07:36:55 2021 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Jun 29 13:32:15 2021 +0000 |
tree | 3fbc60155b23c54ee76fe12396461584ce29ec3c | |
parent | d1285c68d09c6b592c2d29a9cb28dc057d46e591 [diff] [blame] |
Fix bug in GrResourceCache::purgeAsNeeded Change-Id: Iafb09c2f7ea2393c2753208bd0d245c7b175bc65 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/422957 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp index 2a96973..d9a9363 100644 --- a/src/gpu/GrResourceCache.cpp +++ b/src/gpu/GrResourceCache.cpp
@@ -553,6 +553,7 @@ if (stillOverbudget) { fThreadSafeCache->dropUniqueRefs(this); + stillOverbudget = this->overBudget(); while (stillOverbudget && fPurgeableQueue.count()) { GrGpuResource* resource = fPurgeableQueue.peek(); SkASSERT(resource->resourcePriv().isPurgeable());