| 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 "SkPath.h" | 10 #include "SkPath.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 typedef skiagm::GM INHERITED; | 189 typedef skiagm::GM INHERITED; |
| 190 }; | 190 }; |
| 191 | 191 |
| 192 #if 0 // Disabled pending fix from reed@ | 192 #if 0 // Disabled pending fix from reed@ |
| 193 DEF_GM( return new CGImageGM; ) | 193 DEF_GM( return new CGImageGM; ) |
| 194 #endif | 194 #endif |
| 195 #endif | 195 #endif |
| 196 | 196 |
| 197 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 197 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
| 198 | 198 |
| 199 // skbug.com/3716 | 199 // https://bug.skia.org/3716 |
| 200 class ClipCubicGM : public skiagm::GM { | 200 class ClipCubicGM : public skiagm::GM { |
| 201 const SkScalar W = 100; | 201 const SkScalar W = 100; |
| 202 const SkScalar H = 240; | 202 const SkScalar H = 240; |
| 203 | 203 |
| 204 SkPath fVPath, fHPath; | 204 SkPath fVPath, fHPath; |
| 205 public: | 205 public: |
| 206 ClipCubicGM() { | 206 ClipCubicGM() { |
| 207 fVPath.moveTo(W, 0); | 207 fVPath.moveTo(W, 0); |
| 208 fVPath.cubicTo(W, H-10, 0, 10, 0, H); | 208 fVPath.cubicTo(W, H-10, 0, 10, 0, H); |
| 209 | 209 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 canvas->translate(80, 10); | 254 canvas->translate(80, 10); |
| 255 this->drawAndClip(canvas, fVPath, 200, 0); | 255 this->drawAndClip(canvas, fVPath, 200, 0); |
| 256 canvas->translate(0, 200); | 256 canvas->translate(0, 200); |
| 257 this->drawAndClip(canvas, fHPath, 200, 0); | 257 this->drawAndClip(canvas, fHPath, 200, 0); |
| 258 } | 258 } |
| 259 | 259 |
| 260 private: | 260 private: |
| 261 typedef skiagm::GM INHERITED; | 261 typedef skiagm::GM INHERITED; |
| 262 }; | 262 }; |
| 263 DEF_GM(return new ClipCubicGM;) | 263 DEF_GM(return new ClipCubicGM;) |
| OLD | NEW |