diff options
author | rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-23 18:14:13 +0000 |
---|---|---|
committer | rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-23 18:14:13 +0000 |
commit | d6176b0dcacb124539e0cfd051e6d93a9782f020 (patch) | |
tree | 9e6f4b465e54c9b26e1ba70cd8890b55abb08464 /gm/degeneratesegments.cpp | |
parent | fbfcd5602128ec010c82cb733c9cdc0a3254f9f3 (diff) |
Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/)
This CL is part II of IV (I broke down the 1280 files into 4 CLs).
Review URL: https://codereview.appspot.com/6474054
git-svn-id: http://skia.googlecode.com/svn/trunk@5263 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/degeneratesegments.cpp')
-rw-r--r-- | gm/degeneratesegments.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gm/degeneratesegments.cpp b/gm/degeneratesegments.cpp index 63d9dba651..2e19d05f7d 100644 --- a/gm/degeneratesegments.cpp +++ b/gm/degeneratesegments.cpp @@ -25,11 +25,11 @@ protected: SkString onShortName() { return SkString("degeneratesegments"); } - + SkISize onISize() { return make_isize(896, 930); } typedef SkPoint (*AddSegmentFunc)(SkPath&, SkPoint&); - + // We need to use explicit commands here, instead of addPath, because we // do not want the moveTo that is added at the beginning of a path to // appear in the appended path. @@ -205,7 +205,7 @@ protected: canvas->drawPath(path, paint); canvas->restore(); } - + virtual void onDraw(SkCanvas* canvas) { static const AddSegmentFunc gSegmentFunctions[] = { AddMove, @@ -315,7 +315,7 @@ protected: if (0 < column) { canvas->translate(rect.width() + 4*SK_Scalar1, 0); } - + SkColor color = 0xff007000; StyleAndName style = gStyles[(rand.nextU() >> 16) % numStyles]; CapAndName cap = gCaps[(rand.nextU() >> 16) % numCaps]; @@ -387,7 +387,7 @@ protected: canvas->restore(); canvas->restore(); } - + private: typedef GM INHERITED; }; |