From: joshualitt Date: Wed, 29 Jul 2015 18:10:38 +0000 (-0700) Subject: Fix for GrAtlasTextContext crash X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~1532 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e43e3bdd6d7a49623496331a17344a76d04caa7e;p=platform%2Fupstream%2FlibSkiaSharp.git Fix for GrAtlasTextContext crash BUG=510931 Review URL: https://codereview.chromium.org/1256763005 --- diff --git a/src/gpu/GrAtlasTextBlob.h b/src/gpu/GrAtlasTextBlob.h index 1f37c67..502177d 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;