Fix BlurTest to work with fixed point.
git-svn-id: http://skia.googlecode.com/svn/trunk@2212 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
5af16f8d67
commit
d16872c21f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user