diff options
author | rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-23 18:19:56 +0000 |
---|---|---|
committer | rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-23 18:19:56 +0000 |
commit | ae933ce0ea5fd9d21cb6ef2cee7e729d32690aac (patch) | |
tree | 62d80e33b16679d01454cf814977a7030d3a5462 /samplecode/SampleFillType.cpp | |
parent | d6176b0dcacb124539e0cfd051e6d93a9782f020 (diff) |
Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/)
This CL is part III of IV (I broke down the 1280 files into 4 CLs).
Review URL: https://codereview.appspot.com/6475053
git-svn-id: http://skia.googlecode.com/svn/trunk@5264 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleFillType.cpp')
-rw-r--r-- | samplecode/SampleFillType.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/samplecode/SampleFillType.cpp b/samplecode/SampleFillType.cpp index ae97720567..b291834ff7 100644 --- a/samplecode/SampleFillType.cpp +++ b/samplecode/SampleFillType.cpp @@ -19,14 +19,14 @@ class FillTypeView : public SampleView { SkPath fPath; public: - FillTypeView() { + FillTypeView() { const SkScalar radius = SkIntToScalar(45); fPath.addCircle(SkIntToScalar(50), SkIntToScalar(50), radius); fPath.addCircle(SkIntToScalar(100), SkIntToScalar(100), radius); this->setBGColor(0xFFDDDDDD); } - + protected: // overrides from SkEventSink virtual bool onQuery(SkEvent* evt) { @@ -36,7 +36,7 @@ protected: } return this->INHERITED::onQuery(evt); } - + void showPath(SkCanvas* canvas, int x, int y, SkPath::FillType ft, SkScalar scale, const SkPaint& paint) { @@ -53,7 +53,7 @@ protected: canvas->drawPath(fPath, paint); canvas->restore(); } - + void showFour(SkCanvas* canvas, SkScalar scale, const SkPaint& paint) { showPath(canvas, 0, 0, SkPath::kWinding_FillType, scale, paint); @@ -64,10 +64,10 @@ protected: showPath(canvas, 200, 200, SkPath::kInverseEvenOdd_FillType, scale, paint); } - + virtual void onDrawContent(SkCanvas* canvas) { canvas->translate(SkIntToScalar(20), SkIntToScalar(20)); - + SkPaint paint; const SkScalar scale = SkIntToScalar(5)/4; @@ -85,7 +85,7 @@ protected: canvas->translate(SkIntToScalar(450), 0); showFour(canvas, scale, paint); } - + private: typedef SampleView INHERITED; }; |