OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "SampleCode.h" | 8 #include "SampleCode.h" |
9 #include "SkView.h" | 9 #include "SkView.h" |
10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
11 #include "SkPaint.h" | 11 #include "SkPaint.h" |
12 #include "SkPath.h" | 12 #include "SkPath.h" |
13 #include "SkMatrix.h" | 13 #include "SkMatrix.h" |
14 #include "SkColor.h" | 14 #include "SkColor.h" |
15 #include "SkTDArray.h" | 15 #include "SkTDArray.h" |
16 #include "SkRandom.h" | 16 #include "SkRandom.h" |
| 17 #include "SkRRect.h" |
17 | 18 |
18 enum RandomAddPath { | 19 enum RandomAddPath { |
19 kMoveToPath, | 20 kMoveToPath, |
20 kRMoveToPath, | 21 kRMoveToPath, |
21 kLineToPath, | 22 kLineToPath, |
22 kRLineToPath, | 23 kRLineToPath, |
23 kQuadToPath, | 24 kQuadToPath, |
24 kRQuadToPath, | 25 kRQuadToPath, |
25 kConicToPath, | 26 kConicToPath, |
26 kRConicToPath, | 27 kRConicToPath, |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 SkBitmap offscreen; | 693 SkBitmap offscreen; |
693 FuzzPath fuzzPath; | 694 FuzzPath fuzzPath; |
694 bool fOneDraw; | 695 bool fOneDraw; |
695 typedef SkView INHERITED; | 696 typedef SkView INHERITED; |
696 }; | 697 }; |
697 | 698 |
698 static SkView* MyFactory() { return new PathFuzzView; } | 699 static SkView* MyFactory() { return new PathFuzzView; } |
699 static SkViewRegister reg(MyFactory); | 700 static SkViewRegister reg(MyFactory); |
700 | 701 |
701 | 702 |
OLD | NEW |