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

Unified Diff: gm/selftest.cpp

Issue 13663003: gm: record IntentionallySkipped tests (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: sync_to_r8579 Created 7 years, 8 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 | « gm/gmmain.cpp ('k') | gm/tests/outputs/compared-against-different-pixels-images/output-expected/stdout » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/selftest.cpp
===================================================================
--- gm/selftest.cpp (revision 8579)
+++ gm/selftest.cpp (working copy)
@@ -16,7 +16,8 @@
class SelfTestGM : public skiagm::GM {
public:
- SelfTestGM(const char name[], SkColor color) : fName(name), fColor(color) {}
+ SelfTestGM(const char name[], SkColor color, uint32_t flags) :
+ fName(name), fColor(color), fFlags(flags) {}
const static int kWidth = 300;
const static int kHeight = 200;
@@ -34,9 +35,12 @@
canvas->drawRectCoords(0, 0, SkIntToScalar(kWidth), SkIntToScalar(kHeight), paint);
}
+ virtual uint32_t onGetFlags() const { return fFlags; }
+
private:
const SkString fName;
const SkColor fColor;
+ const uint32_t fFlags;
};
//////////////////////////////////////////////////////////////////////////////
@@ -47,8 +51,12 @@
static SkColor kTranslucentGreen = 0x7700EE00;
static SkColor kTranslucentBlue = 0x770000DD;
-static skiagm::GM* F1(void*) { return new SelfTestGM("selftest1", kTranslucentGreen); }
-static skiagm::GM* F2(void*) { return new SelfTestGM("selftest2", kTranslucentBlue); }
+static skiagm::GM* F1(void*) {
+ return new SelfTestGM("selftest1", kTranslucentGreen, 0);
+}
+static skiagm::GM* F2(void*) {
+ return new SelfTestGM("selftest2", kTranslucentBlue, skiagm::GM::kSkipPipe_Flag);
+}
static skiagm::GMRegistry gR1(F1);
static skiagm::GMRegistry gR2(F2);
« no previous file with comments | « gm/gmmain.cpp ('k') | gm/tests/outputs/compared-against-different-pixels-images/output-expected/stdout » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698