Index: src/core/SkPaint.cpp |
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp |
index 4400994000e5a5d2c3c6ccebed3ecf6558ae6446..7fd0b9d227a6da240296b0a0de1564e84885a035 100644 |
--- a/src/core/SkPaint.cpp |
+++ b/src/core/SkPaint.cpp |
@@ -1511,13 +1511,13 @@ static const SkMaskGamma& cachedMaskGamma(SkScalar contrast, SkScalar paintGamma |
gMaskGammaCacheMutex.assertHeld(); |
if (0 == contrast && SK_Scalar1 == paintGamma && SK_Scalar1 == deviceGamma) { |
if (NULL == gLinearMaskGamma) { |
- gLinearMaskGamma = SkNEW(SkMaskGamma); |
+ gLinearMaskGamma = new SkMaskGamma; |
} |
return *gLinearMaskGamma; |
} |
if (gContrast != contrast || gPaintGamma != paintGamma || gDeviceGamma != deviceGamma) { |
SkSafeUnref(gMaskGamma); |
- gMaskGamma = SkNEW_ARGS(SkMaskGamma, (contrast, paintGamma, deviceGamma)); |
+ gMaskGamma = new SkMaskGamma(contrast, paintGamma, deviceGamma); |
gContrast = contrast; |
gPaintGamma = paintGamma; |
gDeviceGamma = deviceGamma; |