| OLD | NEW |
| 1 |
| 1 /* | 2 /* |
| 2 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 3 * | 4 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 6 */ | 7 */ |
| 7 | 8 |
| 9 |
| 10 |
| 8 #include "gm.h" | 11 #include "gm.h" |
| 9 #include "SkPath.h" | |
| 10 #include "SkRandom.h" | 12 #include "SkRandom.h" |
| 11 | 13 |
| 12 #define W 400 | 14 #define W 400 |
| 13 #define H 400 | 15 #define H 400 |
| 14 #define N 50 | 16 #define N 50 |
| 15 | 17 |
| 16 static const SkScalar SW = SkIntToScalar(W); | 18 static const SkScalar SW = SkIntToScalar(W); |
| 17 static const SkScalar SH = SkIntToScalar(H); | 19 static const SkScalar SH = SkIntToScalar(H); |
| 18 | 20 |
| 19 static void rnd_rect(SkRect* r, SkPaint* paint, SkRandom& rand) { | 21 static void rnd_rect(SkRect* r, SkPaint* paint, SkRandom& rand) { |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 273 |
| 272 static skiagm::GM* F0(void*) { return new StrokesGM; } | 274 static skiagm::GM* F0(void*) { return new StrokesGM; } |
| 273 static skiagm::GM* F1(void*) { return new Strokes2GM; } | 275 static skiagm::GM* F1(void*) { return new Strokes2GM; } |
| 274 static skiagm::GM* F2(void*) { return new Strokes3GM; } | 276 static skiagm::GM* F2(void*) { return new Strokes3GM; } |
| 275 static skiagm::GM* F3(void*) { return new Strokes4GM; } | 277 static skiagm::GM* F3(void*) { return new Strokes4GM; } |
| 276 | 278 |
| 277 static skiagm::GMRegistry R0(F0); | 279 static skiagm::GMRegistry R0(F0); |
| 278 static skiagm::GMRegistry R1(F1); | 280 static skiagm::GMRegistry R1(F1); |
| 279 static skiagm::GMRegistry R2(F2); | 281 static skiagm::GMRegistry R2(F2); |
| 280 static skiagm::GMRegistry R3(F3); | 282 static skiagm::GMRegistry R3(F3); |
| OLD | NEW |