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

Unified Diff: gm/selftest.cpp

Issue 867963004: remove unused GM flags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: guarded flags Created 5 years, 11 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/samplerstress.cpp ('k') | gm/shaderbounds.cpp » ('j') | 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
index a332c5d15d5c853e48530c4bd7e3c325cba44224..332a0cd27503849d3eb88ede816d81a53076568c 100644
--- a/gm/selftest.cpp
+++ b/gm/selftest.cpp
@@ -16,8 +16,8 @@
class SelfTestGM : public skiagm::GM {
public:
- SelfTestGM(const char name[], SkColor color, uint32_t flags) :
- fName(name), fColor(color), fFlags(flags) {}
+ SelfTestGM(const char name[], SkColor color) :
+ fName(name), fColor(color) {}
const static int kWidth = 300;
const static int kHeight = 200;
@@ -35,12 +35,9 @@ protected:
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;
};
//////////////////////////////////////////////////////////////////////////////
@@ -52,10 +49,10 @@ static SkColor kTranslucentGreen = 0x7700EE00;
static SkColor kTranslucentBlue = 0x770000DD;
static skiagm::GM* F1(void*) {
- return new SelfTestGM("selftest1", kTranslucentGreen, 0);
+ return new SelfTestGM("selftest1", kTranslucentGreen);
}
static skiagm::GM* F2(void*) {
- return new SelfTestGM("selftest2", kTranslucentBlue, skiagm::GM::kSkipPipe_Flag);
+ return new SelfTestGM("selftest2", kTranslucentBlue);
}
static skiagm::GMRegistry gR1(F1);
« no previous file with comments | « gm/samplerstress.cpp ('k') | gm/shaderbounds.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698