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/GrContext.cpp b/src/gpu/GrContext.cpp
index 4b5f1bb..05b0239 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -72,7 +72,7 @@
SkASSERT(this->drawingManager());
SkASSERT(this->caps());
- SkASSERT(this->getGlyphCache());
+ SkASSERT(this->getGrStrikeCache());
SkASSERT(this->getTextBlobCache());
if (fGpu) {
@@ -160,7 +160,7 @@
// TODO: the glyph cache doesn't hold any GpuResources so this call should not be needed here.
// Some slack in the GrTextBlob's implementation requires it though. That could be fixed.
- this->getGlyphCache()->freeAll();
+ this->getGrStrikeCache()->freeAll();
this->drawingManager()->freeGpuResources();