Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Unified Diff: src/gpu/GrBatchFontCache.cpp

Issue 1156693004: fix for atlas is abandoned text corruption (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Merge 1156693004 to 44 Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrBatchFontCache.cpp
diff --git a/src/gpu/GrBatchFontCache.cpp b/src/gpu/GrBatchFontCache.cpp
index a1f87cb6b3d672e9790b22c3a4bddbc1120034dd..2d6213c085175414adbb861a40d6c90b80d3f301 100644
--- a/src/gpu/GrBatchFontCache.cpp
+++ b/src/gpu/GrBatchFontCache.cpp
@@ -75,6 +75,7 @@ GrBatchFontCache::GrBatchFontCache(GrContext* context)
GrBatchFontCache::~GrBatchFontCache() {
SkTDynamicHash<GrBatchTextStrike, GrFontDescKey>::Iter iter(&fCache);
while (!iter.done()) {
+ (*iter).fIsAbandoned = true;
(*iter).unref();
++iter;
}
@@ -86,6 +87,7 @@ GrBatchFontCache::~GrBatchFontCache() {
void GrBatchFontCache::freeAll() {
SkTDynamicHash<GrBatchTextStrike, GrFontDescKey>::Iter iter(&fCache);
while (!iter.done()) {
+ (*iter).fIsAbandoned = true;
(*iter).unref();
++iter;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698