Chromium Code Reviews| Index: include/effects/SkBlurDrawLooper.h |
| diff --git a/include/effects/SkBlurDrawLooper.h b/include/effects/SkBlurDrawLooper.h |
| index 46b154debcae1737acec841a576008b316725999..9b163fb1e1988a00f9fb7847b16682bdf1aca604 100644 |
| --- a/include/effects/SkBlurDrawLooper.h |
| +++ b/include/effects/SkBlurDrawLooper.h |
| @@ -44,8 +44,7 @@ public: |
| virtual ~SkBlurDrawLooper(); |
| // overrides from SkDrawLooper |
| - virtual void init(SkCanvas*); |
| - virtual bool next(SkCanvas*, SkPaint* paint); |
| + virtual SkDrawLooper::DrawContext* init(SkCanvas*) const; |
|
scroggo
2014/02/06 17:57:13
SK_OVERRIDE
|
| SK_DEVELOPER_TO_STRING() |
| SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurDrawLooper) |
| @@ -54,6 +53,10 @@ protected: |
| SkBlurDrawLooper(SkReadBuffer&); |
| virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| + virtual bool next_internal( |
|
scroggo
2014/02/06 17:57:13
SK_OVERRIDE
|
| + SkCanvas* canvas, SkPaint* paint, |
| + SkDrawLooper::DrawContext* context) const; |
| + |
| private: |
| SkMaskFilter* fBlur; |
| SkColorFilter* fColorFilter; |
| @@ -66,7 +69,11 @@ private: |
| kAfterEdge, |
| kDone |
| }; |
| - State fState; |
| + |
| + struct SkBlurDrawLooperContext : public SkDrawLooper::DrawContext { |
| + SkBlurDrawLooperContext(); |
| + State fState; |
| + }; |
| void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t flags); |