diff options
Diffstat (limited to 'gm/skbug1719.cpp')
-rw-r--r-- | gm/skbug1719.cpp | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/gm/skbug1719.cpp b/gm/skbug1719.cpp index 0a75d353f4..23c0c5fec0 100644 --- a/gm/skbug1719.cpp +++ b/gm/skbug1719.cpp @@ -10,8 +10,6 @@ #include "SkColorFilter.h" #include "SkPath.h" -namespace skiagm { - /** * This test exercises bug 1719. An anti-aliased blurred path is rendered through a soft clip. On * the GPU a scratch texture was used to hold the original path mask as well as the blurred path @@ -20,26 +18,8 @@ namespace skiagm { * * The correct image should look like a thin stroked round rect. */ -class SkBug1719GM : public GM { -public: - SkBug1719GM() {} - -protected: - SkString onShortName() override { - return SkString("skbug1719"); - } - - SkISize onISize() override { - return SkISize::Make(300, 100); - } - - void onDrawBackground(SkCanvas* canvas) override { - SkPaint bgPaint; - bgPaint.setColor(sk_tool_utils::color_to_565(0xFF303030)); - canvas->drawPaint(bgPaint); - } - - void onDraw(SkCanvas* canvas) override { +DEF_SIMPLE_GM_BG(skbug1719, canvas, 300, 100, + sk_tool_utils::color_to_565(0xFF303030)) { canvas->translate(SkIntToScalar(-800), SkIntToScalar(-650)); // The data is lifted from an SKP that exhibited the bug. @@ -89,15 +69,4 @@ protected: canvas->clipPath(clipPath, SkRegion::kIntersect_Op, true); canvas->drawPath(drawPath, paint); - } - -private: - - typedef GM INHERITED; -}; - -////////////////////////////////////////////////////////////////////////////// - -DEF_GM(return new SkBug1719GM;) - } |