Index: src/gpu/GrPathRendering.cpp |
diff --git a/src/gpu/GrPathRendering.cpp b/src/gpu/GrPathRendering.cpp |
index e97d754a46bedd6a6120bf79ca534faa0d92559b..710b828ac9642ebd931317fe501bd62593d219f4 100644 |
--- a/src/gpu/GrPathRendering.cpp |
+++ b/src/gpu/GrPathRendering.cpp |
@@ -63,7 +63,7 @@ GrPathRange* GrPathRendering::createGlyphs(const SkTypeface* typeface, |
} |
if (desc) { |
- SkAutoTUnref<GlyphGenerator> generator(SkNEW_ARGS(GlyphGenerator, (*typeface, *desc))); |
+ SkAutoTUnref<GlyphGenerator> generator(new GlyphGenerator(*typeface, *desc)); |
return this->createPathRange(generator, stroke); |
} |
@@ -81,6 +81,6 @@ GrPathRange* GrPathRendering::createGlyphs(const SkTypeface* typeface, |
genericDesc->addEntry(kRec_SkDescriptorTag, sizeof(rec), &rec); |
genericDesc->computeChecksum(); |
- SkAutoTUnref<GlyphGenerator> generator(SkNEW_ARGS(GlyphGenerator, (*typeface, *genericDesc))); |
+ SkAutoTUnref<GlyphGenerator> generator(new GlyphGenerator(*typeface, *genericDesc)); |
return this->createPathRange(generator, stroke); |
} |