Chromium Code Reviews| Index: src/gpu/GrAtlasTextBlob.h |
| diff --git a/src/gpu/GrAtlasTextBlob.h b/src/gpu/GrAtlasTextBlob.h |
| index 1f37c676e2cf53303f9b370619719db195192173..e37481f0a2294ad467ef9bb56dc49bbf9d3ac06c 100644 |
| --- a/src/gpu/GrAtlasTextBlob.h |
| +++ b/src/gpu/GrAtlasTextBlob.h |
| @@ -99,8 +99,10 @@ struct GrAtlasTextBlob : public SkRefCnt { |
| SubRunInfo& push_back() { |
| // Forward glyph / vertex information to seed the new sub run |
|
robertphillips
2015/07/29 17:00:00
Get the reference to newSubRun on the push_back li
|
| - SubRunInfo& prevSubRun = fSubRunInfo.back(); |
| - SubRunInfo& newSubRun = fSubRunInfo.push_back(); |
| + fSubRunInfo.push_back(); |
| + SubRunInfo& prevSubRun = fSubRunInfo.fromBack(1); |
| + SubRunInfo& newSubRun = fSubRunInfo.back(); |
| + |
| newSubRun.fGlyphStartIndex = prevSubRun.fGlyphEndIndex; |
| newSubRun.fGlyphEndIndex = prevSubRun.fGlyphEndIndex; |