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