| Index: src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp
|
| diff --git a/src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp b/src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp
|
| index 14bf4a5d61ef8a6bb40929a916b9ede20c64409c..00a73641aa7ab8902a85e6572824434709afa971 100644
|
| --- a/src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp
|
| +++ b/src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp
|
| @@ -235,14 +235,18 @@ void GrAtlasTextBlob::regenInBatch(GrDrawBatch::Target* target,
|
| int runIndex, int subRunIndex, SkGlyphCache** cache,
|
| SkTypeface** typeface, GrFontScaler** scaler,
|
| const SkDescriptor** desc, size_t vertexStride,
|
| - GrColor color, SkScalar transX,
|
| - SkScalar transY,
|
| + const SkMatrix& viewMatrix, SkScalar x, SkScalar y,
|
| + GrColor color,
|
| void** vertices, size_t* byteCount, int* glyphCount) {
|
| Run& run = fRuns[runIndex];
|
| Run::SubRunInfo& info = run.fSubRunInfo[subRunIndex];
|
|
|
| uint64_t currentAtlasGen = fontCache->atlasGeneration(info.maskFormat());
|
|
|
| + // Compute translation if any
|
| + SkScalar transX, transY;
|
| + info.computeTranslation(viewMatrix, x, y, &transX, &transY);
|
| +
|
| // Because the GrBatchFontCache may evict the strike a blob depends on using for
|
| // generating its texture coords, we have to track whether or not the strike has
|
| // been abandoned. If it hasn't been abandoned, then we can use the GrGlyph*s as is
|
|
|