aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/selftest.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-07-14 19:39:38 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-14 19:39:38 -0700
commit6e21efd842f42eedcbc4ed08f833682fbdae6d9f (patch)
treea6c8d43775bc7aeb0e233833ba1f0f5fce565c87 /gm/selftest.cpp
parent7445e86bac478dea91da32473e5a01baff637c23 (diff)
Probably no need for GM self-tests now that GM doesn't exist.
This is... belated. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2154603002 Review-Url: https://codereview.chromium.org/2154603002
Diffstat (limited to 'gm/selftest.cpp')
-rw-r--r--gm/selftest.cpp52
1 files changed, 0 insertions, 52 deletions
diff --git a/gm/selftest.cpp b/gm/selftest.cpp
deleted file mode 100644
index b54a528bee..0000000000
--- a/gm/selftest.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2013 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/**
- * Pathologically simple drawing tests, designed to generate consistent
- * output images across platforms for gm/tests/run.sh
- */
-
-#include "gm.h"
-#include "SkCanvas.h"
-#include "SkPaint.h"
-
-class SelfTestGM : public skiagm::GM {
-public:
- SelfTestGM(const char name[], SkColor color) :
- fName(name), fColor(color) {}
- const static int kWidth = 300;
- const static int kHeight = 200;
-
-protected:
- SkString onShortName() {
- return fName;
- }
-
- SkISize onISize() { return SkISize::Make(kWidth, kHeight); }
-
- virtual void onDraw(SkCanvas* canvas) {
- SkPaint paint;
- paint.setStyle(SkPaint::kFill_Style);
- paint.setColor(fColor);
- canvas->drawRectCoords(0, 0, SkIntToScalar(kWidth), SkIntToScalar(kHeight), paint);
- }
-
-private:
- const SkString fName;
- const SkColor fColor;
-};
-
-//////////////////////////////////////////////////////////////////////////////
-
-// We use translucent colors to make sure we are properly handling cases like
-// those which caused https://code.google.com/p/skia/issues/detail?id=1079
-// ('gm generating spurious pixel_error messages as of r7258')
-static SkColor kTranslucentGreen = 0x7700EE00;
-static SkColor kTranslucentBlue = 0x770000DD;
-
-DEF_GM( return new SelfTestGM("selftest1", kTranslucentGreen); )
-DEF_GM( return new SelfTestGM("selftest2", kTranslucentBlue); )