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 virtual uint32_t onGetFlags() const SK_OVERRIDE { |
| 17 return kSkipTiled_Flag; |
| 18 } |
| 19 |
16 | 20 |
17 virtual SkString onShortName() SK_OVERRIDE { | 21 virtual SkString onShortName() SK_OVERRIDE { |
18 return SkString("hairlines"); | 22 return SkString("hairlines"); |
19 } | 23 } |
20 | 24 |
21 virtual SkISize onISize() { return make_isize(800, 600); } | 25 virtual SkISize onISize() { return make_isize(800, 600); } |
22 | 26 |
23 virtual void onOnceBeforeDraw() SK_OVERRIDE { | 27 virtual void onOnceBeforeDraw() SK_OVERRIDE { |
24 { | 28 { |
25 SkPath* lineAnglesPath = &fPaths.push_back(); | 29 SkPath* lineAnglesPath = &fPaths.push_back(); |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 SkTArray<SkPath> fPaths; | 216 SkTArray<SkPath> fPaths; |
213 typedef GM INHERITED; | 217 typedef GM INHERITED; |
214 }; | 218 }; |
215 | 219 |
216 ////////////////////////////////////////////////////////////////////////////// | 220 ////////////////////////////////////////////////////////////////////////////// |
217 | 221 |
218 static GM* MyFactory(void*) { return new HairlinesGM; } | 222 static GM* MyFactory(void*) { return new HairlinesGM; } |
219 static GMRegistry reg(MyFactory); | 223 static GMRegistry reg(MyFactory); |
220 | 224 |
221 } | 225 } |
OLD | NEW |