aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-05 13:20:59 +0000
committerGravatar junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-05 13:20:59 +0000
commit7c545bddf806fc1b2e9ce61a9888b49d60471d73 (patch)
treeac7d1967142458e087506ca1e456c8a2373b685e
parentf919147559d48a43a9c1e3aecbdc942785dae521 (diff)
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
-rw-r--r--gm/shadows.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/gm/shadows.cpp b/gm/shadows.cpp
index d4dd72fc0c..e9274c72a6 100644
--- a/gm/shadows.cpp
+++ b/gm/shadows.cpp
@@ -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);
}
}