gm: record IntentionallySkipped tests
Review URL: https://codereview.chromium.org/13663003
git-svn-id: http://skia.googlecode.com/svn/trunk@8586 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/selftest.cpp b/gm/selftest.cpp
index 812d475..dd6e67b 100644
--- a/gm/selftest.cpp
+++ b/gm/selftest.cpp
@@ -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);