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