diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-09-02 15:46:17 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-09-02 15:46:17 +0000 |
commit | d16872c21fba2898f3b608f9bb33287e9972a312 (patch) | |
tree | f24a0e354f659161744b773a06563b06693e5fc8 /tests/BlurTest.cpp | |
parent | 5af16f8d670b3ce1c7644a4737e02e2e2257614e (diff) |
Fix BlurTest to work with fixed point.
git-svn-id: http://skia.googlecode.com/svn/trunk@2212 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/BlurTest.cpp')
-rw-r--r-- | tests/BlurTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/BlurTest.cpp b/tests/BlurTest.cpp index 61fff63c6b..04aef8e263 100644 --- a/tests/BlurTest.cpp +++ b/tests/BlurTest.cpp @@ -123,10 +123,12 @@ static void test_blur(skiatest::Reporter* reporter) { 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); |