diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-24 07:01:26 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-24 07:01:26 +0000 |
commit | 3e2345a8d56cb76bc43e4421a3e9e3681ecd9eba (patch) | |
tree | fff057f8bf6968fa52925bca60e56db7a674a40b /gm/cubicpaths.cpp | |
parent | 932105ae4be6684c4967d7c496f6f88b3692bda6 (diff) |
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@9266 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/cubicpaths.cpp')
-rw-r--r-- | gm/cubicpaths.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gm/cubicpaths.cpp b/gm/cubicpaths.cpp index e0d72b44b4..15f611a9ee 100644 --- a/gm/cubicpaths.cpp +++ b/gm/cubicpaths.cpp @@ -14,22 +14,22 @@ class ClippedCubicGM : public skiagm::GM { public: ClippedCubicGM() {} - + protected: SkString onShortName() { return SkString("clippedcubic"); } - + SkISize onISize() { return SkISize::Make(1240, 390); } - + virtual void onDraw(SkCanvas* canvas) { SkPath path; path.moveTo(0, 0); path.cubicTo(140, 150, 40, 10, 170, 150); - + SkPaint paint; SkRect bounds = path.getBounds(); - + for (SkScalar dy = -1; dy <= 1; dy += 1) { canvas->save(); for (SkScalar dx = -1; dx <= 1; dx += 1) { @@ -38,14 +38,14 @@ protected: canvas->translate(dx, dy); canvas->drawPath(path, paint); canvas->restore(); - + canvas->translate(bounds.width(), 0); } canvas->restore(); canvas->translate(0, bounds.height()); } } - + private: typedef skiagm::GM INHERITED; }; |