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 | |
8 #include "gm.h" | 7 #include "gm.h" |
9 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
10 #include "SkPaint.h" | 9 #include "SkPaint.h" |
11 #include "SkPath.h" | |
12 #include "SkRandom.h" | 10 #include "SkRandom.h" |
13 | 11 |
14 // skbug.com/1316 shows that this cubic, when slightly clipped, creates big | 12 // skbug.com/1316 shows that this cubic, when slightly clipped, creates big |
15 // (incorrect) changes to its control points. | 13 // (incorrect) changes to its control points. |
16 class ClippedCubicGM : public skiagm::GM { | 14 class ClippedCubicGM : public skiagm::GM { |
17 public: | 15 public: |
18 ClippedCubicGM() {} | 16 ClippedCubicGM() {} |
19 | 17 |
20 protected: | 18 protected: |
21 | 19 |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 | 338 |
341 private: | 339 private: |
342 typedef skiagm::GM INHERITED; | 340 typedef skiagm::GM INHERITED; |
343 }; | 341 }; |
344 | 342 |
345 ////////////////////////////////////////////////////////////////////////////// | 343 ////////////////////////////////////////////////////////////////////////////// |
346 | 344 |
347 DEF_GM( return new CubicPathGM; ) | 345 DEF_GM( return new CubicPathGM; ) |
348 DEF_GM( return new CubicClosePathGM; ) | 346 DEF_GM( return new CubicClosePathGM; ) |
349 DEF_GM( return new ClippedCubicGM; ) | 347 DEF_GM( return new ClippedCubicGM; ) |
OLD | NEW |