| 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" | |
| 18 | 17 |
| 19 enum RandomAddPath { | 18 enum RandomAddPath { |
| 20 kMoveToPath, | 19 kMoveToPath, |
| 21 kRMoveToPath, | 20 kRMoveToPath, |
| 22 kLineToPath, | 21 kLineToPath, |
| 23 kRLineToPath, | 22 kRLineToPath, |
| 24 kQuadToPath, | 23 kQuadToPath, |
| 25 kRQuadToPath, | 24 kRQuadToPath, |
| 26 kConicToPath, | 25 kConicToPath, |
| 27 kRConicToPath, | 26 kRConicToPath, |
| (...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 SkBitmap offscreen; | 692 SkBitmap offscreen; |
| 694 FuzzPath fuzzPath; | 693 FuzzPath fuzzPath; |
| 695 bool fOneDraw; | 694 bool fOneDraw; |
| 696 typedef SkView INHERITED; | 695 typedef SkView INHERITED; |
| 697 }; | 696 }; |
| 698 | 697 |
| 699 static SkView* MyFactory() { return new PathFuzzView; } | 698 static SkView* MyFactory() { return new PathFuzzView; } |
| 700 static SkViewRegister reg(MyFactory); | 699 static SkViewRegister reg(MyFactory); |
| 701 | 700 |
| 702 | 701 |
| OLD | NEW |