Index: src/effects/SkEmbossMaskFilter.cpp |
diff --git a/src/effects/SkEmbossMaskFilter.cpp b/src/effects/SkEmbossMaskFilter.cpp |
index 6747bf5b388ab7373e9dea6d44aa64b6bb15eab5..ab549ccac8d8552aebb73dcb3d88310b3499d08c 100644 |
--- a/src/effects/SkEmbossMaskFilter.cpp |
+++ b/src/effects/SkEmbossMaskFilter.cpp |
@@ -49,7 +49,7 @@ SkMaskFilter* SkBlurMaskFilter::CreateEmboss(SkScalar blurSigma, const SkScalar |
light.fAmbient = SkToU8(am); |
light.fSpecular = SkToU8(sp); |
- return SkNEW_ARGS(SkEmbossMaskFilter, (blurSigma, light)); |
+ return SkEmbossMaskFilter::Create(blurSigma, light); |
} |
/////////////////////////////////////////////////////////////////////////////// |
@@ -68,13 +68,6 @@ SkEmbossMaskFilter::SkEmbossMaskFilter(SkScalar blurSigma, const Light& light) |
normalize(fLight.fDirection); |
} |
-SkEmbossMaskFilter::SkEmbossMaskFilter(const Light& light, SkScalar blurRadius) |
- : fLight(light) { |
- normalize(fLight.fDirection); |
- |
- fBlurSigma = SkBlurMask::ConvertRadiusToSigma(blurRadius); |
-} |
- |
SkMask::Format SkEmbossMaskFilter::getFormat() const { |
return SkMask::k3D_Format; |
} |