aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/poly2poly.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-10-31 14:18:20 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-10-31 14:18:20 +0000
commit48dd1a26ec07c5baa04856202e4e7e2a53e4d7e5 (patch)
treea9ceb415616952a40de7f286a556e20e4841bbf3 /gm/poly2poly.cpp
parent562a2ac95b8cd8b359574f8c4d6300b0475938db (diff)
Import all GMs as Samples.
Review URL: http://codereview.appspot.com/5332043/ git-svn-id: http://skia.googlecode.com/svn/trunk@2564 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/poly2poly.cpp')
-rw-r--r--gm/poly2poly.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/gm/poly2poly.cpp b/gm/poly2poly.cpp
index 6a2df87221..df824b5c11 100644
--- a/gm/poly2poly.cpp
+++ b/gm/poly2poly.cpp
@@ -21,10 +21,6 @@ protected:
virtual SkISize onISize() {
return make_isize(835, 840);
}
-
- void drawBG(SkCanvas* canvas) {
- canvas->drawColor(SK_ColorWHITE);
- }
static void doDraw(SkCanvas* canvas, SkPaint* paint, const int isrc[],
const int idst[], int count) {
@@ -60,9 +56,7 @@ protected:
canvas->restore();
}
- virtual void onDraw(SkCanvas* canvas) {
- this->drawBG(canvas);
-
+ virtual void onDraw(SkCanvas* canvas) {
SkPaint paint;
paint.setAntiAlias(true);
paint.setStrokeWidth(SkIntToScalar(4));