diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-20 14:05:03 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-20 14:05:03 +0000 |
commit | 3c14d0f3d1b467dc3776669b0fc48cb463a20d41 (patch) | |
tree | c0e50f8d6363f7d1ededbcb77b2f7f73649a785c /gm/strokerects.cpp | |
parent | 0368d06a29d985785e05a733de9d428b62663d9c (diff) |
Fix gm tests for fixed point.
git-svn-id: http://skia.googlecode.com/svn/trunk@1389 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/strokerects.cpp')
-rw-r--r-- | gm/strokerects.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gm/strokerects.cpp b/gm/strokerects.cpp index 8f53e92b5e..891b95a8c3 100644 --- a/gm/strokerects.cpp +++ b/gm/strokerects.cpp @@ -29,14 +29,14 @@ static const SkScalar SH = SkIntToScalar(H); class StrokeRectGM : public GM { public: - StrokeRectGM() {} + StrokeRectGM() {} protected: virtual SkString onShortName() { return SkString("strokerects"); } - virtual SkISize onISize() { + virtual SkISize onISize() { return make_isize(W*2, H*2); } @@ -63,7 +63,10 @@ protected: SkAutoCanvasRestore acr(canvas, true); canvas->translate(SW * x, SH * y); - canvas->clipRect(SkRect::MakeLTRB(SkIntToScalar(2), SkIntToScalar(2), SW - SkIntToScalar(2), SH - SkIntToScalar(2))); + canvas->clipRect(SkRect::MakeLTRB( + SkIntToScalar(2), SkIntToScalar(2) + , SW - SkIntToScalar(2), SH - SkIntToScalar(2) + )); SkRandom rand; for (int i = 0; i < N; i++) { |