diff options
author | joshualitt <joshualitt@chromium.org> | 2015-07-29 11:10:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-29 11:10:38 -0700 |
commit | e43e3bdd6d7a49623496331a17344a76d04caa7e (patch) | |
tree | 219b8d24728865a787009cfe3139f7b6d4d91002 /src | |
parent | fdb788cbfcdccac65d8d1f535920c7f2fdba1ead (diff) |
Fix for GrAtlasTextContext crash
BUG=510931
Review URL: https://codereview.chromium.org/1256763005
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrAtlasTextBlob.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrAtlasTextBlob.h b/src/gpu/GrAtlasTextBlob.h index 1f37c676e2..502177d0d2 100644 --- a/src/gpu/GrAtlasTextBlob.h +++ b/src/gpu/GrAtlasTextBlob.h @@ -99,8 +99,9 @@ struct GrAtlasTextBlob : public SkRefCnt { SubRunInfo& push_back() { // Forward glyph / vertex information to seed the new sub run - SubRunInfo& prevSubRun = fSubRunInfo.back(); SubRunInfo& newSubRun = fSubRunInfo.push_back(); + SubRunInfo& prevSubRun = fSubRunInfo.fromBack(1); + newSubRun.fGlyphStartIndex = prevSubRun.fGlyphEndIndex; newSubRun.fGlyphEndIndex = prevSubRun.fGlyphEndIndex; |