| Index: src/gpu/gl/GrGLPathRendering.cpp
|
| diff --git a/src/gpu/gl/GrGLPathRendering.cpp b/src/gpu/gl/GrGLPathRendering.cpp
|
| index 2fe9758c8a469a8a5e03fc0f509a9cbe60989de1..26584bc80872f4dffd8f864aff73478f0b8bb784 100644
|
| --- a/src/gpu/gl/GrGLPathRendering.cpp
|
| +++ b/src/gpu/gl/GrGLPathRendering.cpp
|
| @@ -132,11 +132,12 @@ GrPathRange* GrGLPathRendering::createGlyphs(const SkTypeface* typeface,
|
|
|
| const size_t numPaths = typeface->countGlyphs();
|
| const GrGLuint basePathID = this->genPaths(numPaths);
|
| + SkAutoTUnref<GrGLPath> templatePath(SkNEW_ARGS(GrGLPath, (fGpu, SkPath(), stroke)));
|
|
|
| GrGLenum status;
|
| GL_CALL_RET(status, PathMemoryGlyphIndexArray(basePathID, GR_GL_STANDARD_FONT_FORMAT,
|
| - fontDataLength, fontData, faceIndex, 0, numPaths,
|
| - GrGLPath(fGpu, SkPath(), stroke).pathID(),
|
| + fontDataLength, fontData, faceIndex, 0,
|
| + numPaths, templatePath->pathID(),
|
| SkPaint::kCanonicalTextSizeForPaths));
|
|
|
| if (GR_GL_FONT_GLYPHS_AVAILABLE != status) {
|
|
|