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