Fix BlurTest to work with fixed point.
git-svn-id: http://skia.googlecode.com/svn/trunk@2212 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/BlurTest.cpp b/tests/BlurTest.cpp
index 61fff63..04aef8e 100644
--- a/tests/BlurTest.cpp
+++ b/tests/BlurTest.cpp
@@ -123,10 +123,12 @@
for (int test = 0; test < SK_ARRAY_COUNT(tests); ++test) {
SkPath path;
tests[test].addPath(&path);
- SkRect refBound = path.getBounds();
- refBound.outset(outset, outset);
+ SkPath strokedPath;
+ paint.getFillPath(path, &strokedPath);
+ SkRect refBound = strokedPath.getBounds();
SkIRect iref;
refBound.roundOut(&iref);
+ iref.inset(-outset, -outset);
SkBitmap refBitmap;
create(&refBitmap, iref, SkBitmap::kARGB_8888_Config);