aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrAtlasTextContext.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-05-26 12:32:23 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-26 12:32:23 -0700
commit7a9c45c01cadea5d8b3e9671a57311247a8c414d (patch)
treee49449b3a3c58ea8be52101ecff2c175d626475a /src/gpu/GrAtlasTextContext.cpp
parentdc47ff7f1fe8fd56aed93a79cad679aa51914388 (diff)
real fix for textblob use after gpu free
This patch addresses two issues: 1) Textblobs with abandoned strikes were not properly regenerating. 2) Provided by ericrk - GrTextBlobCache removed blobs from |fCache| during freeAll, but left potentially released blobs in the |fBlobList|. We now remove these from |fBlobList| as well. BUG=skia: Review URL: https://codereview.chromium.org/1160633002
Diffstat (limited to 'src/gpu/GrAtlasTextContext.cpp')
-rw-r--r--src/gpu/GrAtlasTextContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrAtlasTextContext.cpp b/src/gpu/GrAtlasTextContext.cpp
index 35a9164d09..750cb13fc0 100644
--- a/src/gpu/GrAtlasTextContext.cpp
+++ b/src/gpu/GrAtlasTextContext.cpp
@@ -1592,7 +1592,8 @@ public:
TextInfo& info = run.fSubRunInfo[args.fSubRun];
uint64_t currentAtlasGen = fFontCache->atlasGeneration(fMaskFormat);
- bool regenerateTextureCoords = info.fAtlasGeneration != currentAtlasGen;
+ bool regenerateTextureCoords = info.fAtlasGeneration != currentAtlasGen ||
+ run.fStrike->isAbandoned();
bool regenerateColors;
if (fUseDistanceFields) {
regenerateColors = !fUseLCDText && run.fColor != args.fColor;