diff options
author | joshualitt <joshualitt@chromium.org> | 2015-04-07 10:02:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-07 10:02:25 -0700 |
commit | 7281c61e7bc689d484dcbda49be3cef4ce4f11c2 (patch) | |
tree | 50a56d94d5419f96a658a0eaf263891d3d95290b /src/gpu/GrAADistanceFieldPathRenderer.cpp | |
parent | bb4a1cf0e66c98c723f04f473a3221b2a4d8ece1 (diff) |
Adding bulk plot reffer to cached textblobs
This change will prevent the atlas from evicting glyphs the TextBlob
needs.
BUG=skia:
Review URL: https://codereview.chromium.org/1050113004
Diffstat (limited to 'src/gpu/GrAADistanceFieldPathRenderer.cpp')
-rwxr-xr-x | src/gpu/GrAADistanceFieldPathRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrAADistanceFieldPathRenderer.cpp b/src/gpu/GrAADistanceFieldPathRenderer.cpp index 789406bdbc..cbb08248b7 100755 --- a/src/gpu/GrAADistanceFieldPathRenderer.cpp +++ b/src/gpu/GrAADistanceFieldPathRenderer.cpp @@ -275,7 +275,7 @@ public: } } - atlas->setLastRefToken(args.fPathData->fID, batchTarget->currentToken()); + atlas->setLastUseToken(args.fPathData->fID, batchTarget->currentToken()); // Now set vertices intptr_t offset = reinterpret_cast<intptr_t>(vertices); |