Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1494)

Unified Diff: gm/selftest.cpp

Issue 2154603002: Probably no need for GM self-tests now that GM doesn't exist. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/selftest.cpp
diff --git a/gm/selftest.cpp b/gm/selftest.cpp
deleted file mode 100644
index b54a528bee3408a143397dbfdd1db9e82012be6e..0000000000000000000000000000000000000000
--- 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); )
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698