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 #include "gm.h" | 7 #include "gm.h" |
8 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
9 #include "SkPaint.h" | 9 #include "SkPaint.h" |
| 10 #include "SkPath.h" |
10 #include "SkRandom.h" | 11 #include "SkRandom.h" |
11 | 12 |
12 namespace skiagm { | 13 namespace skiagm { |
13 | 14 |
14 class DegenerateSegmentsGM : public GM { | 15 class DegenerateSegmentsGM : public GM { |
15 public: | 16 public: |
16 DegenerateSegmentsGM() {} | 17 DegenerateSegmentsGM() {} |
17 | 18 |
18 protected: | 19 protected: |
19 struct PathAndName { | 20 struct PathAndName { |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 private: | 392 private: |
392 typedef GM INHERITED; | 393 typedef GM INHERITED; |
393 }; | 394 }; |
394 | 395 |
395 ////////////////////////////////////////////////////////////////////////////// | 396 ////////////////////////////////////////////////////////////////////////////// |
396 | 397 |
397 static GM* MyFactory(void*) { return new DegenerateSegmentsGM; } | 398 static GM* MyFactory(void*) { return new DegenerateSegmentsGM; } |
398 static GMRegistry reg(MyFactory); | 399 static GMRegistry reg(MyFactory); |
399 | 400 |
400 } | 401 } |
OLD | NEW |