Pointer to GrStrikeCache on GrTextBlob
This will allow all the glyph drawing closures to live on the
GrTextBlob.
Other cleanup
* Rename glyphCache things to grStrikeCache.
Change-Id: I03e0353a1434230086a08184221272f1e5751ae6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/197244
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
diff --git a/src/gpu/GrRecordingContext.cpp b/src/gpu/GrRecordingContext.cpp
index 553fc7d..23f25cd 100644
--- a/src/gpu/GrRecordingContext.cpp
+++ b/src/gpu/GrRecordingContext.cpp
@@ -55,7 +55,7 @@
return false;
}
- fGlyphCache.reset(new GrStrikeCache(this->caps(),
+ fStrikeCache.reset(new GrStrikeCache(this->caps(),
this->options().fGlyphCacheTextureMaximumBytes));
fTextBlobCache.reset(new GrTextBlobCache(textblobcache_overbudget_CB, this,
@@ -102,7 +102,7 @@
void GrRecordingContext::abandonContext() {
INHERITED::abandonContext();
- fGlyphCache->freeAll();
+ fStrikeCache->freeAll();
fTextBlobCache->freeAll();
}