aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gm/cubicpaths.cpp22
1 files changed, 8 insertions, 14 deletions
diff --git a/gm/cubicpaths.cpp b/gm/cubicpaths.cpp
index 1fc13c06cf..88f7ab15c5 100644
--- a/gm/cubicpaths.cpp
+++ b/gm/cubicpaths.cpp
@@ -9,9 +9,7 @@
#include "SkPaint.h"
#include "SkRandom.h"
-namespace skiagm {
-
-class CubicPathGM : public GM {
+class CubicPathGM : public skiagm::GM {
public:
CubicPathGM() {}
@@ -20,7 +18,7 @@ protected:
return SkString("cubicpath");
}
- SkISize onISize() { return make_isize(1240, 390); }
+ SkISize onISize() { return SkISize::Make(1240, 390); }
void drawPath(SkPath& path,SkCanvas* canvas,SkColor color,
const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join,
@@ -151,10 +149,10 @@ protected:
}
private:
- typedef GM INHERITED;
+ typedef skiagm::GM INHERITED;
};
-class CubicClosePathGM : public GM {
+class CubicClosePathGM : public skiagm::GM {
public:
CubicClosePathGM() {}
@@ -163,7 +161,7 @@ protected:
return SkString("cubicclosepath");
}
- SkISize onISize() { return make_isize(1240, 390); }
+ SkISize onISize() { return SkISize::Make(1240, 390); }
void drawPath(SkPath& path,SkCanvas* canvas,SkColor color,
const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join,
@@ -295,15 +293,11 @@ protected:
}
private:
- typedef GM INHERITED;
+ typedef skiagm::GM INHERITED;
};
//////////////////////////////////////////////////////////////////////////////
-static GM* CubicPathFactory(void*) { return new CubicPathGM; }
-static GMRegistry regCubicPath(CubicPathFactory);
-
-static GM* CubicClosePathFactory(void*) { return new CubicClosePathGM; }
-static GMRegistry regCubicClosePath(CubicClosePathFactory);
+DEF_GM( return new CubicPathGM; )
+DEF_GM( return new CubicClosePathGM; )
-}