Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 6ece67fd10a19beb1e00fa8debfa1ad4d63878a8..e4587070d9a6b0427e6dad203f9f24e1a696e82a 100755 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -250,13 +250,12 @@ GrTextContext* GrContext::createTextContext(GrRenderTarget* renderTarget, |
const SkDeviceProperties& |
leakyProperties, |
bool enableDistanceFieldFonts) { |
- if (fGpu->caps()->pathRenderingSupport()) { |
- if (renderTarget->getStencilBuffer() && renderTarget->isMultisampled()) { |
- return SkNEW_ARGS(GrStencilAndCoverTextContext, (this, leakyProperties)); |
- } |
- } |
- return SkNEW_ARGS(GrDistanceFieldTextContext, (this, leakyProperties, |
- enableDistanceFieldFonts)); |
+ if (fGpu->caps()->pathRenderingSupport() && renderTarget->getStencilBuffer() && |
+ renderTarget->isMultisampled()) { |
+ return GrStencilAndCoverTextContext::Create(this, leakyProperties); |
+ } |
+ |
+ return GrDistanceFieldTextContext::Create(this, leakyProperties, enableDistanceFieldFonts); |
} |
//////////////////////////////////////////////////////////////////////////////// |