| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 SkPath p; | 73 SkPath p; |
| 74 rnd_cubic(&p, &paint, rand); | 74 rnd_cubic(&p, &paint, rand); |
| 75 canvas->drawPath(p, paint); | 75 canvas->drawPath(p, paint); |
| 76 } | 76 } |
| 77 } | 77 } |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 typedef skiagm::GM INHERITED; | 80 typedef skiagm::GM INHERITED; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 static skiagm::GM* F0(void*) { return new BeziersGM; } | 83 DEF_GM( return new BeziersGM; ) |
| 84 static skiagm::GMRegistry R0(F0); | |
| OLD | NEW |