Index: gm/drawlooper.cpp |
=================================================================== |
--- gm/drawlooper.cpp (revision 11004) |
+++ gm/drawlooper.cpp (working copy) |
@@ -62,12 +62,12 @@ |
SkPaint::Style fStyle; |
SkScalar fWidth; |
SkScalar fOffset; |
- int fBlur; |
+ SkScalar fSigma; |
} gParams[] = { |
{ SK_ColorWHITE, SkPaint::kStroke_Style, SkIntToScalar(1)*3/4, 0, 0 }, |
{ SK_ColorRED, SkPaint::kStroke_Style, SkIntToScalar(4), 0, 0 }, |
{ SK_ColorBLUE, SkPaint::kFill_Style, 0, 0, 0 }, |
- { 0x88000000, SkPaint::kFill_Style, 0, SkIntToScalar(10), 3 } |
+ { 0x88000000, SkPaint::kFill_Style, 0, SkIntToScalar(10), SkFloatToScalar(2.23205f) } |
}; |
fLooper = new SkLayerDrawLooper; |
@@ -84,9 +84,9 @@ |
paint->setColor(gParams[i].fColor); |
paint->setStyle(gParams[i].fStyle); |
paint->setStrokeWidth(gParams[i].fWidth); |
- if (gParams[i].fBlur > 0) { |
- SkMaskFilter* mf = SkBlurMaskFilter::Create(SkIntToScalar(gParams[i].fBlur), |
- SkBlurMaskFilter::kNormal_BlurStyle); |
+ if (gParams[i].fSigma > 0) { |
+ SkMaskFilter* mf = SkBlurMaskFilter::Create(SkBlurMaskFilter::kNormal_BlurStyle, |
+ gParams[i].fSigma); |
paint->setMaskFilter(mf)->unref(); |
} |
} |