Index: src/gpu/text/GrAtlasTextBlob.cpp |
diff --git a/src/gpu/text/GrAtlasTextBlob.cpp b/src/gpu/text/GrAtlasTextBlob.cpp |
index 05fb5ad415ff16b48633cfd9bdbc51839916d754..10fc308ea54a2df86d747a0fd4e8eb25d6a42694 100644 |
--- a/src/gpu/text/GrAtlasTextBlob.cpp |
+++ b/src/gpu/text/GrAtlasTextBlob.cpp |
@@ -63,7 +63,7 @@ void GrAtlasTextBlob::appendGlyph(int runIndex, |
subRun->setMaskFormat(format); |
- run.fVertexBounds.joinNonEmptyArg(positions); |
+ subRun->joinGlyphBounds(positions); |
subRun->setColor(color); |
intptr_t vertex = reinterpret_cast<intptr_t>(this->fVertices + subRun->vertexEndIndex()); |
@@ -219,7 +219,6 @@ bool GrAtlasTextBlob::mustRegenerate(SkScalar* outTransX, SkScalar* outTransY, |
(*outTransY) = y - fY; |
} |
- |
// If we can reuse the blob, then make sure we update the blob's viewmatrix, and x/y |
// offsets. Note, we offset the vertex bounds right before flushing |
fViewMatrix = viewMatrix; |
@@ -383,7 +382,6 @@ void GrAtlasTextBlob::flushCached(GrContext* context, |
drawFilter, viewMatrix, clipBounds, x, y); |
continue; |
} |
- fRuns[run].fVertexBounds.offset(transX, transY); |
this->flushRun(dc, &pipelineBuilder, run, color, |
transX, transY, skPaint, props, |
distanceAdjustTable, context->getBatchFontCache()); |