Index: src/core/SkFilterShader.cpp |
diff --git a/src/core/SkFilterShader.cpp b/src/core/SkFilterShader.cpp |
index a10a7c9d77b0fb2bbcede4d71b3f5f81a1bbaab9..d9724897743cdb0c089e5d1558f86f5bae32b817 100644 |
--- a/src/core/SkFilterShader.cpp |
+++ b/src/core/SkFilterShader.cpp |
@@ -32,7 +32,7 @@ SkFlattenable* SkFilterShader::CreateProc(SkReadBuffer& buffer) { |
if (!shader.get() || !filter.get()) { |
return NULL; |
} |
- return SkNEW_ARGS(SkFilterShader, (shader, filter)); |
+ return new SkFilterShader(shader, filter); |
} |
void SkFilterShader::flatten(SkWriteBuffer& buffer) const { |
@@ -62,7 +62,7 @@ SkShader::Context* SkFilterShader::onCreateContext(const ContextRec& rec, void* |
if (NULL == shaderContext) { |
return NULL; |
} |
- return SkNEW_PLACEMENT_ARGS(storage, FilterShaderContext, (*this, shaderContext, rec)); |
+ return new (storage) FilterShaderContext(*this, shaderContext, rec); |
} |
size_t SkFilterShader::contextSize() const { |