use DEF_GM
git-svn-id: http://skia.googlecode.com/svn/trunk@7832 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
3012ded0ff
commit
3934200b67
@ -249,11 +249,7 @@ private:
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static skiagm::GM* MyFactory(void*) { return new TilingGM; }
|
||||
static skiagm::GMRegistry reg(MyFactory);
|
||||
DEF_GM( return new TilingGM; )
|
||||
DEF_GM( return new Tiling2GM(make_bm, "bitmap"); )
|
||||
DEF_GM( return new Tiling2GM(make_grad, "gradient"); )
|
||||
|
||||
static skiagm::GM* MyFactory2(void*) { return new Tiling2GM(make_bm, "bitmap"); }
|
||||
static skiagm::GMRegistry reg2(MyFactory2);
|
||||
|
||||
static skiagm::GM* MyFactory3(void*) { return new Tiling2GM(make_grad, "gradient"); }
|
||||
static skiagm::GMRegistry reg3(MyFactory3);
|
||||
|
Loading…
Reference in New Issue
Block a user