diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-08-25 20:40:04 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-08-25 20:40:04 +0000 |
commit | ff3e92d2f83521fd9be32f66c4bbff2e30bd7a00 (patch) | |
tree | 570384db52f199de64d3a9e9d1bdb03164c4565c /samplecode/SampleHairline.cpp | |
parent | c64599649bab68aedf07959f86fa506fc46fa3c2 (diff) |
show the hairlines after each test iteration
git-svn-id: http://skia.googlecode.com/svn/trunk@337 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleHairline.cpp')
-rw-r--r-- | samplecode/SampleHairline.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/samplecode/SampleHairline.cpp b/samplecode/SampleHairline.cpp index 9763d0f1dd..3285d08b22 100644 --- a/samplecode/SampleHairline.cpp +++ b/samplecode/SampleHairline.cpp @@ -79,8 +79,8 @@ static bool check_bitmap_margin(const SkBitmap& bm, int margin) { return true; } -#define WIDTH 80 -#define HEIGHT 60 +#define WIDTH 400 +#define HEIGHT 300 #define MARGIN 4 class HairlineView : public SkView { @@ -131,7 +131,7 @@ protected: SkCanvas c2(bm2); SkPaint paint; paint.setAntiAlias(true); - for (int i = 0; i < 10000; i++) { + for (int i = 0; i < 400; i++) { SkPoint pts[2]; generate_pts(pts, 2, WIDTH, HEIGHT); bm2.eraseColor(0); @@ -141,6 +141,7 @@ protected: pts[0].fX, pts[0].fY, pts[1].fX, pts[1].fY); break; } + canvas->drawBitmap(bm2, SkIntToScalar(10), SkIntToScalar(10), NULL); } this->inval(NULL); |