| 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 | 7 |
| 8 #include "gm.h" | 8 #include "gm.h" |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkPaint.h" | 10 #include "SkPaint.h" |
| 11 #include "SkPath.h" | 11 #include "SkPath.h" |
| 12 #include "SkRandom.h" | 12 #include "SkRandom.h" |
| 13 | 13 |
| 14 // skbug.com/1316 shows that this cubic, when slightly clipped, creates big | 14 // https://bug.skia.org/1316 shows that this cubic, when slightly clipped, creat
es big |
| 15 // (incorrect) changes to its control points. | 15 // (incorrect) changes to its control points. |
| 16 class ClippedCubicGM : public skiagm::GM { | 16 class ClippedCubicGM : public skiagm::GM { |
| 17 public: | 17 public: |
| 18 ClippedCubicGM() {} | 18 ClippedCubicGM() {} |
| 19 | 19 |
| 20 protected: | 20 protected: |
| 21 | 21 |
| 22 SkString onShortName() { | 22 SkString onShortName() { |
| 23 return SkString("clippedcubic"); | 23 return SkString("clippedcubic"); |
| 24 } | 24 } |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 private: | 412 private: |
| 413 typedef skiagm::GM INHERITED; | 413 typedef skiagm::GM INHERITED; |
| 414 }; | 414 }; |
| 415 | 415 |
| 416 ////////////////////////////////////////////////////////////////////////////// | 416 ////////////////////////////////////////////////////////////////////////////// |
| 417 | 417 |
| 418 DEF_GM( return new CubicPathGM; ) | 418 DEF_GM( return new CubicPathGM; ) |
| 419 DEF_GM( return new CubicClosePathGM; ) | 419 DEF_GM( return new CubicClosePathGM; ) |
| 420 DEF_GM( return new ClippedCubicGM; ) | 420 DEF_GM( return new ClippedCubicGM; ) |
| 421 DEF_GM( return new ClippedCubic2GM; ) | 421 DEF_GM( return new ClippedCubic2GM; ) |
| OLD | NEW |