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" | 10 #include "SkPath.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 FakeCloseCorner, // The last point coincides with the first one at a c
orner. | 25 FakeCloseCorner, // The last point coincides with the first one at a c
orner. |
26 // The path looks closed, but final rendering has 2 e
nds with cap. | 26 // The path looks closed, but final rendering has 2 e
nds with cap. |
27 | 27 |
28 FakeCloseMiddle, // The last point coincides with the first one in the
middle of a line. | 28 FakeCloseMiddle, // The last point coincides with the first one in the
middle of a line. |
29 // The path looks closed, and the final rendering loo
ks closed too. | 29 // The path looks closed, and the final rendering loo
ks closed too. |
30 | 30 |
31 kClosureTypeCount | 31 kClosureTypeCount |
32 }; | 32 }; |
33 | 33 |
34 protected: | 34 protected: |
35 uint32_t onGetFlags() const SK_OVERRIDE { | |
36 return kSkipTiled_Flag; | |
37 } | |
38 | 35 |
39 SkString onShortName() SK_OVERRIDE { | 36 SkString onShortName() SK_OVERRIDE { |
40 return SkString("nonclosedpaths"); | 37 return SkString("nonclosedpaths"); |
41 } | 38 } |
42 | 39 |
43 // 12 * 18 + 3 cases, every case is 100 * 100 pixels. | 40 // 12 * 18 + 3 cases, every case is 100 * 100 pixels. |
44 SkISize onISize() SK_OVERRIDE { | 41 SkISize onISize() SK_OVERRIDE { |
45 return SkISize::Make(1220, 1920); | 42 return SkISize::Make(1220, 1920); |
46 } | 43 } |
47 | 44 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 137 |
141 private: | 138 private: |
142 typedef GM INHERITED; | 139 typedef GM INHERITED; |
143 }; | 140 }; |
144 | 141 |
145 ////////////////////////////////////////////////////////////////////////////// | 142 ////////////////////////////////////////////////////////////////////////////// |
146 | 143 |
147 DEF_GM(return new NonClosedPathsGM;) | 144 DEF_GM(return new NonClosedPathsGM;) |
148 | 145 |
149 } | 146 } |
OLD | NEW |