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 "SkTArray.h" | 10 #include "SkTArray.h" |
11 | 11 |
12 namespace skiagm { | 12 namespace skiagm { |
13 | 13 |
14 class HairlinesGM : public GM { | 14 class HairlinesGM : public GM { |
15 protected: | 15 protected: |
16 uint32_t onGetFlags() const SK_OVERRIDE { | |
17 return kSkipTiled_Flag; | |
18 } | |
19 | 16 |
20 | 17 |
21 SkString onShortName() SK_OVERRIDE { | 18 SkString onShortName() SK_OVERRIDE { |
22 return SkString("hairlines"); | 19 return SkString("hairlines"); |
23 } | 20 } |
24 | 21 |
25 SkISize onISize() SK_OVERRIDE { return SkISize::Make(1250, 1250); } | 22 SkISize onISize() SK_OVERRIDE { return SkISize::Make(1250, 1250); } |
26 | 23 |
27 void onOnceBeforeDraw() SK_OVERRIDE { | 24 void onOnceBeforeDraw() SK_OVERRIDE { |
28 { | 25 { |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 SkTArray<SkPath> fPaths; | 216 SkTArray<SkPath> fPaths; |
220 typedef GM INHERITED; | 217 typedef GM INHERITED; |
221 }; | 218 }; |
222 | 219 |
223 ////////////////////////////////////////////////////////////////////////////// | 220 ////////////////////////////////////////////////////////////////////////////// |
224 | 221 |
225 static GM* MyFactory(void*) { return new HairlinesGM; } | 222 static GM* MyFactory(void*) { return new HairlinesGM; } |
226 static GMRegistry reg(MyFactory); | 223 static GMRegistry reg(MyFactory); |
227 | 224 |
228 } | 225 } |
OLD | NEW |