aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/effects/SkBlurDrawLooper.h
diff options
context:
space:
mode:
authorGravatar senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-02-18 19:03:01 +0000
committerGravatar senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-02-18 19:03:01 +0000
commit4868e6b221a4a98e40f977851af5fcf09631ea15 (patch)
tree7cab2de730dc1ef1ed247ed869c088b057e75a49 /include/effects/SkBlurDrawLooper.h
parent7a5af8b7dc946ccb94fdc22491623a8bfafc88fa (diff)
[Committed on behalf of junov@chromium.org]
Fixed rendering of shadows under bitmaps. Added an option to SkBlurMask to produce higher quality blurs. The HQ blur option is propagated through SkBlurDrawLooper so that it can be invoked by WebKit for drawing shadows. Added a shadow rendering test to gm. Bugs fixed: 146, 150 Related Chromium bugs: 11153, 42654 Code review: http://codereview.appspot.com/4174049 git-svn-id: http://skia.googlecode.com/svn/trunk@818 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/effects/SkBlurDrawLooper.h')
-rw-r--r--include/effects/SkBlurDrawLooper.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/effects/SkBlurDrawLooper.h b/include/effects/SkBlurDrawLooper.h
index 6f96ff633d..e7af5c2da1 100644
--- a/include/effects/SkBlurDrawLooper.h
+++ b/include/effects/SkBlurDrawLooper.h
@@ -21,6 +21,7 @@
#include "SkColor.h"
class SkMaskFilter;
+class SkColorFilter;
/** \class SkBlurDrawLooper
This class draws a shadow of the object (possibly offset), and then draws
@@ -35,9 +36,11 @@ public:
The blur layer's dx/dy/radius aren't affected by the canvas
transform.
*/
- kIgnoreTransform_BlurFlag = 0x01,
+ kIgnoreTransform_BlurFlag = 0x01,
+ kOverrideColor_BlurFlag = 0x02,
+ kHighQuality_BlurFlag = 0x04,
/** mask for all blur flags */
- kAll_BlurFlag = 0x01
+ kAll_BlurFlag = 0x07
};
SkBlurDrawLooper(SkScalar radius, SkScalar dx, SkScalar dy, SkColor color,
@@ -64,6 +67,7 @@ private:
SkCanvas* fCanvas;
SkPaint* fPaint;
SkMaskFilter* fBlur;
+ SkColorFilter* fColorFilter;
SkScalar fDx, fDy;
SkColor fBlurColor;
SkColor fSavedColor; // remember the original