aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-07-29 11:10:38 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-29 11:10:38 -0700
commite43e3bdd6d7a49623496331a17344a76d04caa7e (patch)
tree219b8d24728865a787009cfe3139f7b6d4d91002 /src
parentfdb788cbfcdccac65d8d1f535920c7f2fdba1ead (diff)
Fix for GrAtlasTextContext crash
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrAtlasTextBlob.h3
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;