From d6176b0dcacb124539e0cfd051e6d93a9782f020 Mon Sep 17 00:00:00 2001 From: "rmistry@google.com" Date: Thu, 23 Aug 2012 18:14:13 +0000 Subject: 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 --- gm/cubicpaths.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'gm/cubicpaths.cpp') diff --git a/gm/cubicpaths.cpp b/gm/cubicpaths.cpp index 7cd3df159e..1fc13c06cf 100644 --- a/gm/cubicpaths.cpp +++ b/gm/cubicpaths.cpp @@ -19,9 +19,9 @@ protected: SkString onShortName() { return SkString("cubicpath"); } - + SkISize onISize() { return make_isize(1240, 390); } - + void drawPath(SkPath& path,SkCanvas* canvas,SkColor color, const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, SkPaint::Style style, SkPath::FillType fill, @@ -38,7 +38,7 @@ protected: canvas->drawPath(path, paint); canvas->restore(); } - + virtual void onDraw(SkCanvas* canvas) { struct FillAndName { SkPath::FillType fFill; @@ -111,19 +111,19 @@ protected: if (0 < style) { canvas->translate(rect.width() + 40 * SK_Scalar1, 0); } - + SkColor color = 0xff007000; this->drawPath(path.fPath, canvas, color, rect, gCaps[cap].fCap, gCaps[cap].fJoin, gStyles[style].fStyle, gFills[fill].fFill, SK_Scalar1*10); - + SkPaint rectPaint; rectPaint.setColor(SK_ColorBLACK); rectPaint.setStyle(SkPaint::kStroke_Style); rectPaint.setStrokeWidth(-1); rectPaint.setAntiAlias(true); canvas->drawRect(rect, rectPaint); - + SkPaint labelPaint; labelPaint.setColor(color); labelPaint.setAntiAlias(true); @@ -149,7 +149,7 @@ protected: canvas->restore(); canvas->restore(); } - + private: typedef GM INHERITED; }; @@ -162,9 +162,9 @@ protected: SkString onShortName() { return SkString("cubicclosepath"); } - + SkISize onISize() { return make_isize(1240, 390); } - + void drawPath(SkPath& path,SkCanvas* canvas,SkColor color, const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, SkPaint::Style style, SkPath::FillType fill, @@ -181,7 +181,7 @@ protected: canvas->drawPath(path, paint); canvas->restore(); } - + virtual void onDraw(SkCanvas* canvas) { struct FillAndName { SkPath::FillType fFill; @@ -255,19 +255,19 @@ protected: if (0 < style) { canvas->translate(rect.width() + 40 * SK_Scalar1, 0); } - + SkColor color = 0xff007000; this->drawPath(path.fPath, canvas, color, rect, gCaps[cap].fCap, gCaps[cap].fJoin, gStyles[style].fStyle, gFills[fill].fFill, SK_Scalar1*10); - + SkPaint rectPaint; rectPaint.setColor(SK_ColorBLACK); rectPaint.setStyle(SkPaint::kStroke_Style); rectPaint.setStrokeWidth(-1); rectPaint.setAntiAlias(true); canvas->drawRect(rect, rectPaint); - + SkPaint labelPaint; labelPaint.setColor(color); labelPaint.setAntiAlias(true); @@ -293,7 +293,7 @@ protected: canvas->restore(); canvas->restore(); } - + private: typedef GM INHERITED; }; -- cgit v1.2.3