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

Unified Diff: gm/selftest.cpp

Issue 1518893002: Use DEF_GM everywhere (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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/pathinterior.cpp ('k') | gm/strokes.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 332a0cd27503849d3eb88ede816d81a53076568c..b54a528bee3408a143397dbfdd1db9e82012be6e 100644
--- a/gm/selftest.cpp
+++ b/gm/selftest.cpp
@@ -48,12 +48,5 @@ private:
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::GMRegistry gR1(F1);
-static skiagm::GMRegistry gR2(F2);
+DEF_GM( return new SelfTestGM("selftest1", kTranslucentGreen); )
+DEF_GM( return new SelfTestGM("selftest2", kTranslucentBlue); )
« no previous file with comments | « gm/pathinterior.cpp ('k') | gm/strokes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698