Augment gm shadows test to cover hairline paths
Note: this patch will cause gm/shadows to fail on all platforms until the test is re baselined. REVIEW=http://codereview.appspot.com/5972065/ git-svn-id: http://skia.googlecode.com/svn/trunk@3612 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
f919147559
commit
7c545bddf8
@ -40,7 +40,7 @@ protected:
|
||||
}
|
||||
|
||||
virtual SkISize onISize() {
|
||||
return make_isize(200, 80);
|
||||
return make_isize(200, 120);
|
||||
}
|
||||
|
||||
virtual void onDraw(SkCanvas* canvas) {
|
||||
@ -85,6 +85,7 @@ protected:
|
||||
} gRec[] = {
|
||||
{ SK_ColorRED, -SK_Scalar1 },
|
||||
{ SK_ColorGREEN, SkIntToScalar(4) },
|
||||
{ SK_ColorBLUE, SkIntToScalar(0)},
|
||||
};
|
||||
|
||||
SkPaint paint;
|
||||
@ -101,6 +102,10 @@ protected:
|
||||
canvas->translate(SkIntToScalar(0), SkIntToScalar(40));
|
||||
setup(&paint, gRec[1].fColor, gRec[1].fStrokeWidth);
|
||||
canvas->drawPath(fCirclePath, paint);
|
||||
|
||||
canvas->translate(SkIntToScalar(0), SkIntToScalar(40));
|
||||
setup(&paint, gRec[2].fColor, gRec[2].fStrokeWidth);
|
||||
canvas->drawPath(fCirclePath, paint);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user