gm: use DEF_GM macro consistantly

Change-Id: I705180db106ec4515aaec5f347199b98b21976fa
Reviewed-on: https://skia-review.googlesource.com/c/186081
Auto-Submit: Hal Canary <halcanary@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
This commit is contained in:
Hal Canary 2019-01-23 10:22:01 -05:00 committed by Skia Commit-Bot
parent 094ab18b45
commit e964c18b98
38 changed files with 40 additions and 83 deletions

View File

@ -171,7 +171,5 @@ namespace skiagm {
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new AARectModesGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new AARectModesGM; );
}

View File

@ -130,6 +130,5 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new BitmapCopyGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new BitmapCopyGM; )
}

View File

@ -72,7 +72,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new BitmapImageGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new BitmapImageGM; )
}

View File

@ -138,7 +138,6 @@ DEF_SIMPLE_GM(hugebitmapshader, canvas, 100, 100) {
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new BitmapShaderGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new BitmapShaderGM; )
}

View File

@ -200,7 +200,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new CircleGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new CircleGM; )
}

View File

@ -171,7 +171,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new ColorEmojiBlendModesGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new ColorEmojiBlendModesGM; )
}

View File

@ -292,7 +292,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new ConvexPathsGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new ConvexPathsGM; )
}

View File

@ -50,8 +50,7 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new CopyTo4444GM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new CopyTo4444GM; )
}

View File

@ -367,7 +367,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new DegenerateSegmentsGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new DegenerateSegmentsGM; )
}

View File

@ -67,7 +67,6 @@ private:
///////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new DistantClipGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new DistantClipGM; )
}

View File

@ -182,7 +182,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new DstReadShuffle; }
static GMRegistry reg(MyFactory);
DEF_GM( return new DstReadShuffle; )
}

View File

@ -78,7 +78,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new ExtractBitmapGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new ExtractBitmapGM; )
}

View File

@ -90,7 +90,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new FillTypeGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new FillTypeGM; )
}

View File

@ -125,7 +125,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new FillTypePerspGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new FillTypePerspGM; )
}

View File

@ -76,7 +76,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new FontScalerGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new FontScalerGM; )
}

View File

@ -96,7 +96,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new FontScalerDistortableGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new FontScalerDistortableGM; )
}

View File

@ -95,5 +95,4 @@ private:
///////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new GradientsGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new GradientsGM; )

View File

@ -97,11 +97,8 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* CMyFactory(void*) { return new ChromeGradTextGM1; }
static GM* CMyFactory2(void*) { return new ChromeGradTextGM2; }
static GMRegistry Creg(CMyFactory);
static GMRegistry Creg2(CMyFactory2);
DEF_GM( return new ChromeGradTextGM1; )
DEF_GM( return new ChromeGradTextGM2; )
}
DEF_SIMPLE_GM(gradtext, canvas, 500, 480) {

View File

@ -258,7 +258,6 @@ DEF_SIMPLE_GM(squarehair, canvas, 240, 360) {
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new HairlinesGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new HairlinesGM; )
}

View File

@ -120,7 +120,5 @@ namespace skiagm {
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new HairModesGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new HairModesGM; )
}

View File

@ -70,7 +70,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new InternalLinksGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new InternalLinksGM; )
}

View File

@ -153,7 +153,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new ModeColorFilterGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new ModeColorFilterGM; )
}

View File

@ -299,7 +299,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new OvalGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new OvalGM; )
}

View File

@ -160,8 +160,7 @@ private:
typedef GM INHERITED;
};
static GM* PathEffectFactory(void*) { return new PathEffectGM; }
static GMRegistry regPathEffect(PathEffectFactory);
DEF_GM( return new PathEffectGM; )
}

View File

@ -109,7 +109,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new PathOpsInverseGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new PathOpsInverseGM; )
}

View File

@ -66,7 +66,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new PathOpsSkpClipGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new PathOpsSkpClipGM; )
}

View File

@ -67,7 +67,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new PointsGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new PointsGM; )
}

View File

@ -276,10 +276,8 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* QuadPathFactory(void*) { return new QuadPathGM; }
static GMRegistry regQuadPath(QuadPathFactory);
DEF_GM( return new QuadPathGM; )
static GM* QuadClosePathFactory(void*) { return new QuadClosePathGM; }
static GMRegistry regQuadClosePath(QuadClosePathFactory);
DEF_GM( return new QuadClosePathGM; )
}

View File

@ -279,7 +279,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new RectsGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new RectsGM; )
}

View File

@ -373,7 +373,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new RoundRectGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new RoundRectGM; )
}

View File

@ -139,7 +139,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new SamplerStressGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new SamplerStressGM; )
}

View File

@ -126,6 +126,5 @@ private:
///////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new ShaderText3GM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new ShaderText3GM; )
}

View File

@ -125,7 +125,6 @@ private:
///////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new ShadowsGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new ShadowsGM; )
}

View File

@ -92,7 +92,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new StLouisArchGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new StLouisArchGM; )
}

View File

@ -77,7 +77,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new StrokeRectsGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new StrokeRectsGM; )
}

View File

@ -117,7 +117,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new ThinRectsGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new ThinRectsGM; )
}

View File

@ -48,7 +48,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new TinyBitmapGM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new TinyBitmapGM; )
}

View File

@ -140,7 +140,6 @@ private:
//////////////////////////////////////////////////////////////////////////////
static GM* MyFactory(void*) { return new Xfermodes2GM; }
static GMRegistry reg(MyFactory);
DEF_GM( return new Xfermodes2GM; )
}