diff options
author | Robert Phillips <robertphillips@google.com> | 2018-01-18 12:59:22 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-18 18:31:58 +0000 |
commit | 40a29d7705d970be03ff94f9fa062db75dccbd0f (patch) | |
tree | 67908df5424d112ea27a012de435819586f23793 /src/gpu/text | |
parent | 3af7f6e2ce32c0909159145b23378d119e900bbe (diff) |
Move GrOpFlushState out of GrDrawingManager and onto the stack
Change-Id: If1b3481af7637bfed8a73d75be41c6422319951f
Reviewed-on: https://skia-review.googlesource.com/96540
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/text')
-rw-r--r-- | src/gpu/text/GrAtlasTextBlobVertexRegenerator.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/text/GrAtlasTextBlobVertexRegenerator.cpp b/src/gpu/text/GrAtlasTextBlobVertexRegenerator.cpp index 1be5ae330c..a49a3ff998 100644 --- a/src/gpu/text/GrAtlasTextBlobVertexRegenerator.cpp +++ b/src/gpu/text/GrAtlasTextBlobVertexRegenerator.cpp @@ -241,8 +241,9 @@ Regenerator::Result Regenerator::doRegen() { result.fFinished = false; return result; } + auto tokenTracker = fUploadTarget->tokenTracker(); fGlyphCache->addGlyphToBulkAndSetUseToken(fSubRun->bulkUseToken(), glyph, - fUploadTarget->nextDrawToken()); + tokenTracker->nextDrawToken()); } regen_vertices<regenPos, regenCol, regenTexCoords>(currVertex, glyph, vertexStride, @@ -310,7 +311,8 @@ Regenerator::Result Regenerator::regenerate() { // set use tokens for all of the glyphs in our subrun. This is only valid if we // have a valid atlas generation - fGlyphCache->setUseTokenBulk(*fSubRun->bulkUseToken(), fUploadTarget->nextDrawToken(), + fGlyphCache->setUseTokenBulk(*fSubRun->bulkUseToken(), + fUploadTarget->tokenTracker()->nextDrawToken(), fSubRun->maskFormat()); return result; } |