Index: src/effects/gradients/SkTwoPointConicalGradient.cpp |
diff --git a/src/effects/gradients/SkTwoPointConicalGradient.cpp b/src/effects/gradients/SkTwoPointConicalGradient.cpp |
index e9c2efe32d3edb3f70a5da97a39194a2cb00ee57..574df08294fb5cdbb2d9de0cbdd760e6f252c39b 100644 |
--- a/src/effects/gradients/SkTwoPointConicalGradient.cpp |
+++ b/src/effects/gradients/SkTwoPointConicalGradient.cpp |
@@ -221,12 +221,8 @@ size_t SkTwoPointConicalGradient::contextSize() const { |
return sizeof(TwoPointConicalGradientContext); |
} |
-SkShader::Context* SkTwoPointConicalGradient::createContext(const ContextRec& rec, |
- void* storage) const { |
- if (!this->validContext(rec)) { |
- return NULL; |
- } |
- |
+SkShader::Context* SkTwoPointConicalGradient::onCreateContext(const ContextRec& rec, |
+ void* storage) const { |
return SkNEW_PLACEMENT_ARGS(storage, TwoPointConicalGradientContext, (*this, rec)); |
} |