Index: src/effects/gradients/SkTwoPointRadialGradient.h |
diff --git a/src/effects/gradients/SkTwoPointRadialGradient.h b/src/effects/gradients/SkTwoPointRadialGradient.h |
index 1b387e6896edb336c177175c7366cdc2c8ac749d..de5b5434e17decdfaa6cac61124ec05a034ee3c8 100644 |
--- a/src/effects/gradients/SkTwoPointRadialGradient.h |
+++ b/src/effects/gradients/SkTwoPointRadialGradient.h |
@@ -23,20 +23,13 @@ public: |
virtual GradientType asAGradient(GradientInfo* info) const SK_OVERRIDE; |
virtual GrEffectRef* asNewEffect(GrContext* context, const SkPaint&) const SK_OVERRIDE; |
- |
virtual size_t contextSize() const SK_OVERRIDE; |
- virtual bool validContext(const SkBitmap&, const SkPaint&, |
- const SkMatrix&, SkMatrix* totalInverse = NULL) const SK_OVERRIDE; |
- virtual SkShader::Context* createContext(const SkBitmap&, const SkPaint&, const SkMatrix&, |
- void* storage) const SK_OVERRIDE; |
+ virtual bool validContext(const ContextRec&, SkMatrix* totalInverse) const SK_OVERRIDE; |
+ virtual SkShader::Context* createContext(const ContextRec&, void* storage) const SK_OVERRIDE; |
class TwoPointRadialGradientContext : public SkGradientShaderBase::GradientShaderBaseContext { |
public: |
- TwoPointRadialGradientContext(const SkTwoPointRadialGradient& shader, |
- const SkBitmap& device, |
- const SkPaint& paint, |
- const SkMatrix& matrix); |
- ~TwoPointRadialGradientContext() {} |
+ TwoPointRadialGradientContext(const SkTwoPointRadialGradient&, const ContextRec&); |
virtual void shadeSpan(int x, int y, SkPMColor dstC[], int count) SK_OVERRIDE; |