diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-04-07 14:18:59 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-04-07 14:18:59 +0000 |
commit | 4e2b3d3fb1288c6dc0f3ea1c0aa4a0d7c603bd7b (patch) | |
tree | e2f3bfd538b7ded23f94ca2c8af3ea90de52182b /include/effects/SkBlurDrawLooper.h | |
parent | 591b6dadb09b0c143b903d4bae6a888527d36612 (diff) |
Simplify drawloopers and drawfilters. This allows the canvas to keep its
promise that const SkPaint& stay const (so we don't have bugs if a const paint
is referenced from two threads in pictures)
git-svn-id: http://skia.googlecode.com/svn/trunk@1074 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/effects/SkBlurDrawLooper.h')
-rw-r--r-- | include/effects/SkBlurDrawLooper.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/effects/SkBlurDrawLooper.h b/include/effects/SkBlurDrawLooper.h index 101d24ebb4..846048c858 100644 --- a/include/effects/SkBlurDrawLooper.h +++ b/include/effects/SkBlurDrawLooper.h @@ -48,9 +48,8 @@ public: virtual ~SkBlurDrawLooper(); // overrides from SkDrawLooper - virtual void init(SkCanvas*, SkPaint*); - virtual bool next(); - virtual void restore(); + virtual void init(SkCanvas*); + virtual bool next(SkCanvas*, SkPaint* paint); static SkFlattenable* CreateProc(SkFlattenableReadBuffer& buffer) { return SkNEW_ARGS(SkBlurDrawLooper, (buffer)); @@ -64,14 +63,10 @@ protected: virtual Factory getFactory() { return CreateProc; } private: - SkCanvas* fCanvas; - SkPaint* fPaint; SkMaskFilter* fBlur; SkColorFilter* fColorFilter; SkScalar fDx, fDy; SkColor fBlurColor; - SkColor fSavedColor; // remember the original - int fSaveCount; uint32_t fBlurFlags; enum State { |