| Index: samplecode/SampleTiling.cpp
|
| ===================================================================
|
| --- samplecode/SampleTiling.cpp (revision 11108)
|
| +++ samplecode/SampleTiling.cpp (working copy)
|
| @@ -21,6 +21,7 @@
|
| // effects
|
| #include "SkGradientShader.h"
|
| #include "SkUnitMappers.h"
|
| +#include "SkBlurMask.h"
|
| #include "SkBlurDrawLooper.h"
|
|
|
| static void makebm(SkBitmap* bm, SkBitmap::Config config, int w, int h) {
|
| @@ -66,8 +67,9 @@
|
| SkBlurDrawLooper fLooper;
|
| public:
|
| TilingView()
|
| - : fLooper(SkIntToScalar(1), SkIntToScalar(2), SkIntToScalar(2),
|
| - 0x88000000) {
|
| + : fLooper(0x88000000,
|
| + SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(1)),
|
| + SkIntToScalar(2), SkIntToScalar(2)) {
|
| fTextPicture = new SkPicture();
|
| for (size_t i = 0; i < SK_ARRAY_COUNT(gConfigs); i++) {
|
| makebm(&fTexture[i], gConfigs[i], gWidth, gHeight);
|
|
|