Index: gm/megalooper.cpp |
=================================================================== |
--- gm/megalooper.cpp (revision 11108) |
+++ gm/megalooper.cpp (working copy) |
@@ -6,10 +6,11 @@ |
*/ |
#include "gm.h" |
+#include "SkBlurMask.h" |
+#include "SkBlurMaskFilter.h" |
#include "SkCanvas.h" |
-#include "SkBlurMaskFilter.h" |
+#include "SkColorFilter.h" |
#include "SkLayerDrawLooper.h" |
-#include "SkColorFilter.h" |
// This GM tests 3 different ways of drawing four shadows around a square: |
// just using 4 blurred rects |
@@ -110,10 +111,10 @@ |
} |
SkMaskFilter* createBlur() { |
- static const SkScalar kBlurRadius = 25.0f; |
+ static const SkScalar kBlurSigma = SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(25)); |
- return SkBlurMaskFilter::Create(kBlurRadius, |
- SkBlurMaskFilter::kNormal_BlurStyle, |
+ return SkBlurMaskFilter::Create(SkBlurMaskFilter::kNormal_BlurStyle, |
+ kBlurSigma, |
SkBlurMaskFilter::kHighQuality_BlurFlag); |
} |