OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 // this GM tests hairlines which fill nearly the entire render target | 15 // this GM tests hairlines which fill nearly the entire render target |
15 class StLouisArchGM : public GM { | 16 class StLouisArchGM : public GM { |
16 protected: | 17 protected: |
17 SkString onShortName() override { | 18 SkString onShortName() override { |
18 return SkString("stlouisarch"); | 19 return SkString("stlouisarch"); |
19 } | 20 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 SkTArray<SkPath> fPaths; | 89 SkTArray<SkPath> fPaths; |
89 typedef GM INHERITED; | 90 typedef GM INHERITED; |
90 }; | 91 }; |
91 | 92 |
92 ////////////////////////////////////////////////////////////////////////////// | 93 ////////////////////////////////////////////////////////////////////////////// |
93 | 94 |
94 static GM* MyFactory(void*) { return new StLouisArchGM; } | 95 static GM* MyFactory(void*) { return new StLouisArchGM; } |
95 static GMRegistry reg(MyFactory); | 96 static GMRegistry reg(MyFactory); |
96 | 97 |
97 } | 98 } |
OLD | NEW |