Simplify VertexRegenerator GrStrikeCache handling
The SubRun has access to the GrStrikeCache pointer, there is
no need to pass it around the VertexRegenerator.
Change-Id: I867b1b29b29e595f92ad57505dcd27dd0f6b726f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/264649
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
diff --git a/src/gpu/ops/GrAtlasTextOp.cpp b/src/gpu/ops/GrAtlasTextOp.cpp
index f790870..5d158c6 100644
--- a/src/gpu/ops/GrAtlasTextOp.cpp
+++ b/src/gpu/ops/GrAtlasTextOp.cpp
@@ -286,8 +286,6 @@
}
GrAtlasManager* atlasManager = target->atlasManager();
- GrStrikeCache* glyphCache = target->glyphCache();
-
GrMaskFormat maskFormat = this->maskFormat();
unsigned int numActiveViews;
@@ -361,8 +359,7 @@
// TODO4F: Preserve float colors
GrTextBlob::VertexRegenerator regenerator(
- resourceProvider, args.fSubRunPtr, target->deferredUploadTarget(), glyphCache,
- atlasManager);
+ resourceProvider, args.fSubRunPtr, target->deferredUploadTarget(), atlasManager);
// Where the subRun begins and ends relative to totalGlyphsRegened.
int subRunBegin = totalGlyphsRegened;