Index: samplecode/SampleTextureDomain.cpp |
=================================================================== |
--- samplecode/SampleTextureDomain.cpp (revision 11108) |
+++ samplecode/SampleTextureDomain.cpp (working copy) |
@@ -6,9 +6,10 @@ |
* found in the LICENSE file. |
*/ |
#include "SampleCode.h" |
+#include "SkBlurMask.h" |
+#include "SkBlurMaskFilter.h" |
#include "SkCanvas.h" |
#include "SkDevice.h" |
-#include "SkBlurMaskFilter.h" |
namespace { |
SkBitmap make_bitmap() { |
@@ -80,8 +81,8 @@ |
srcRect.setXYWH(1, 1, 3, 3); |
dstRect.setXYWH(5.0f, 405.0f, 305.0f, 305.0f); |
SkMaskFilter* mf = SkBlurMaskFilter::Create( |
- 5, |
SkBlurMaskFilter::kNormal_BlurStyle, |
+ SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5)), |
SkBlurMaskFilter::kHighQuality_BlurFlag | |
SkBlurMaskFilter::kIgnoreTransform_BlurFlag); |
paint.setMaskFilter(mf)->unref(); |
@@ -93,8 +94,8 @@ |
// that handles blurs with rects transformed to non- |
// orthogonal rects. It also tests the NULL src rect handling |
mf = SkBlurMaskFilter::Create( |
- 5, |
SkBlurMaskFilter::kNormal_BlurStyle, |
+ SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5)), |
SkBlurMaskFilter::kHighQuality_BlurFlag); |
paint.setMaskFilter(mf)->unref(); |