projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdb788c
)
Fix for GrAtlasTextContext crash
author
joshualitt
<joshualitt@chromium.org>
Wed, 29 Jul 2015 18:10:38 +0000
(11:10 -0700)
committer
Commit bot
<commit-bot@chromium.org>
Wed, 29 Jul 2015 18:10:38 +0000
(11:10 -0700)
BUG=510931
Review URL: https://codereview.chromium.org/
1256763005
src/gpu/GrAtlasTextBlob.h
patch
|
blob
|
history
diff --git
a/src/gpu/GrAtlasTextBlob.h
b/src/gpu/GrAtlasTextBlob.h
index
1f37c67
..
502177d
100644
(file)
--- 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;