OLD | NEW |
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 Loading... |
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; ) |
OLD | NEW |