Index: src/effects/gradients/SkLinearGradient.h |
diff --git a/src/effects/gradients/SkLinearGradient.h b/src/effects/gradients/SkLinearGradient.h |
index 8d806672f87656681586d2e33b04ad6b91d5b1bf..013c4499b0c3d4471193851a4802efbc17b5c4e7 100644 |
--- a/src/effects/gradients/SkLinearGradient.h |
+++ b/src/effects/gradients/SkLinearGradient.h |
@@ -15,23 +15,9 @@ |
public: |
SkLinearGradient(const SkPoint pts[2], const Descriptor&); |
- virtual SkShader::Context* createContext(const SkBitmap&, const SkPaint&, const SkMatrix&, |
- void* storage) const SK_OVERRIDE; |
- virtual size_t contextSize() const SK_OVERRIDE; |
- |
- class LinearGradientContext : public SkGradientShaderBase::GradientShaderBaseContext { |
- public: |
- LinearGradientContext(const SkLinearGradient& shader, const SkBitmap& device, |
- const SkPaint& paint, const SkMatrix& matrix); |
- ~LinearGradientContext() {} |
- |
- virtual void shadeSpan(int x, int y, SkPMColor dstC[], int count) SK_OVERRIDE; |
- virtual void shadeSpan16(int x, int y, uint16_t dstC[], int count) SK_OVERRIDE; |
- |
- private: |
- typedef SkGradientShaderBase::GradientShaderBaseContext INHERITED; |
- }; |
- |
+ virtual bool setContext(const SkBitmap&, const SkPaint&, const SkMatrix&) SK_OVERRIDE; |
+ virtual void shadeSpan(int x, int y, SkPMColor dstC[], int count) SK_OVERRIDE; |
+ virtual void shadeSpan16(int x, int y, uint16_t dstC[], int count) SK_OVERRIDE; |
virtual BitmapType asABitmap(SkBitmap*, SkMatrix*, TileMode*) const SK_OVERRIDE; |
virtual GradientType asAGradient(GradientInfo* info) const SK_OVERRIDE; |
virtual GrEffectRef* asNewEffect(GrContext* context, const SkPaint&) const SK_OVERRIDE; |