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

Side by Side Diff: gm/strokes.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 unified diff | Download patch
« no previous file with comments | « gm/selftest.cpp ('k') | gm/testimagefilters.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "gm.h" 8 #include "gm.h"
9 #include "SkPath.h" 9 #include "SkPath.h"
10 #include "SkRandom.h" 10 #include "SkRandom.h"
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 canvas->drawPath(path, p); 476 canvas->drawPath(path, p);
477 } 477 }
478 478
479 private: 479 private:
480 typedef skiagm::GM INHERITED; 480 typedef skiagm::GM INHERITED;
481 }; 481 };
482 482
483 483
484 ////////////////////////////////////////////////////////////////////////////// 484 //////////////////////////////////////////////////////////////////////////////
485 485
486 static skiagm::GM* F0(void*) { return new StrokesGM; } 486 DEF_GM( return new StrokesGM; )
487 static skiagm::GM* F1(void*) { return new Strokes2GM; } 487 DEF_GM( return new Strokes2GM; )
488 static skiagm::GM* F2(void*) { return new Strokes3GM; } 488 DEF_GM( return new Strokes3GM; )
489 static skiagm::GM* F3(void*) { return new Strokes4GM; } 489 DEF_GM( return new Strokes4GM; )
490 static skiagm::GM* F4(void*) { return new Strokes5GM; } 490 DEF_GM( return new Strokes5GM; )
491
492 static skiagm::GMRegistry R0(F0);
493 static skiagm::GMRegistry R1(F1);
494 static skiagm::GMRegistry R2(F2);
495 static skiagm::GMRegistry R3(F3);
496 static skiagm::GMRegistry R4(F4);
497 491
498 DEF_GM( return new ZeroLenStrokesGM; ) 492 DEF_GM( return new ZeroLenStrokesGM; )
499 DEF_GM( return new TeenyStrokesGM; ) 493 DEF_GM( return new TeenyStrokesGM; )
OLDNEW
« no previous file with comments | « gm/selftest.cpp ('k') | gm/testimagefilters.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698