| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "SkTArray.h" | 11 #include "SkTArray.h" |
| 11 | 12 |
| 12 namespace skiagm { | 13 namespace skiagm { |
| 13 | 14 |
| 14 class HairlinesGM : public GM { | 15 class HairlinesGM : public GM { |
| 15 protected: | 16 protected: |
| 16 | 17 |
| 17 | 18 |
| 18 SkString onShortName() override { | 19 SkString onShortName() override { |
| 19 return SkString("hairlines"); | 20 return SkString("hairlines"); |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 SkTArray<SkPath> fPaths; | 217 SkTArray<SkPath> fPaths; |
| 217 typedef GM INHERITED; | 218 typedef GM INHERITED; |
| 218 }; | 219 }; |
| 219 | 220 |
| 220 ////////////////////////////////////////////////////////////////////////////// | 221 ////////////////////////////////////////////////////////////////////////////// |
| 221 | 222 |
| 222 static GM* MyFactory(void*) { return new HairlinesGM; } | 223 static GM* MyFactory(void*) { return new HairlinesGM; } |
| 223 static GMRegistry reg(MyFactory); | 224 static GMRegistry reg(MyFactory); |
| 224 | 225 |
| 225 } | 226 } |
| OLD | NEW |