Index: gm/smallarc.cpp |
diff --git a/gm/smallarc.cpp b/gm/smallarc.cpp |
index 6c0df8d8d78e201445c31b2ccaa14e931da7f97d..25755accc43eab3ca4c5f72b920374f314fdf29e 100644 |
--- a/gm/smallarc.cpp |
+++ b/gm/smallarc.cpp |
@@ -8,27 +8,10 @@ |
#include "gm.h" |
#include "SkPath.h" |
-namespace skiagm { |
- |
// this draws a small arc scaled up |
// see https://code.google.com/p/chromium/issues/detail?id=102411 |
// and https://code.google.com/p/skia/issues/detail?id=2769 |
-class SmallArcGM : public GM { |
-public: |
- SmallArcGM() { |
- } |
- |
-protected: |
- |
- SkString onShortName() override { |
- return SkString("smallarc"); |
- } |
- |
- SkISize onISize() override { |
- return SkISize::Make(762, 762); |
- } |
- |
- void onDraw(SkCanvas* canvas) override { |
+DEF_SIMPLE_GM(smallarc, canvas, 762, 762) { |
SkPaint p; |
p.setColor(SK_ColorRED); |
p.setAntiAlias(true); |
@@ -42,13 +25,4 @@ protected: |
canvas->translate(-400, -400); |
canvas->scale(8, 8); |
canvas->drawPath(path, p); |
- } |
- |
-private: |
- typedef GM INHERITED; |
-}; |
- |
-////////////////////////////////////////////////////////////////////////////// |
- |
-DEF_GM(return new SmallArcGM;) |
} |