Fix stack-allocated GPU path object

Fixes nvpr text to dynamically allocate its template path object, as
per the Skia policy.

BUG=skia:
R=robertphillips@google.com, bsalomon@google.com

Author: cdalton@nvidia.com

Review URL: https://codereview.chromium.org/582033003
diff --git a/src/gpu/gl/GrGLPathRendering.cpp b/src/gpu/gl/GrGLPathRendering.cpp
index 2fe9758..26584bc 100644
--- a/src/gpu/gl/GrGLPathRendering.cpp
+++ b/src/gpu/gl/GrGLPathRendering.cpp
@@ -132,11 +132,12 @@
 
     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) {