Index: src/effects/gradients/SkRadialGradient.cpp |
diff --git a/src/effects/gradients/SkRadialGradient.cpp b/src/effects/gradients/SkRadialGradient.cpp |
index 07ee680acad3df254d9830070a51c47183a4d377..e379f36c9577f33490e6ab9b0d86d34aa7835b2b 100644 |
--- a/src/effects/gradients/SkRadialGradient.cpp |
+++ b/src/effects/gradients/SkRadialGradient.cpp |
@@ -161,11 +161,7 @@ size_t SkRadialGradient::contextSize() const { |
return sizeof(RadialGradientContext); |
} |
-SkShader::Context* SkRadialGradient::createContext(const ContextRec& rec, void* storage) const { |
- if (!this->validContext(rec)) { |
- return NULL; |
- } |
- |
+SkShader::Context* SkRadialGradient::onCreateContext(const ContextRec& rec, void* storage) const { |
return SkNEW_PLACEMENT_ARGS(storage, RadialGradientContext, (*this, rec)); |
} |