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 "SkPath.h" | 9 #include "SkPath.h" |
10 | 10 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 path->moveTo(25.727224f + xOffset, 12.886665f); | 122 path->moveTo(25.727224f + xOffset, 12.886665f); |
123 path->lineTo(10.907918f + xOffset, 12.886665f); | 123 path->lineTo(10.907918f + xOffset, 12.886665f); |
124 path->lineTo(7.5166659f + xOffset, 28.683645f); | 124 path->lineTo(7.5166659f + xOffset, 28.683645f); |
125 path->lineTo(14.810181f + xOffset, 28.683645f); | 125 path->lineTo(14.810181f + xOffset, 28.683645f); |
126 path->lineTo(7.7024879f + xOffset, 46.135998f); | 126 path->lineTo(7.7024879f + xOffset, 46.135998f); |
127 path->lineTo(28.049999f + xOffset, 25.136419f); | 127 path->lineTo(28.049999f + xOffset, 25.136419f); |
128 path->lineTo(16.854223f + xOffset, 25.136419f); | 128 path->lineTo(16.854223f + xOffset, 25.136419f); |
129 path->lineTo(25.727224f + xOffset, 12.886665f); | 129 path->lineTo(25.727224f + xOffset, 12.886665f); |
130 path->close(); | 130 path->close(); |
131 return SkIntToScalar(70); | 131 return SkIntToScalar(50); |
132 } | 132 } |
133 | 133 |
134 static SkScalar make_battery2(SkPath* path) { | 134 static SkScalar make_battery2(SkPath* path) { |
135 static SkScalar xOffset = 5.f; | 135 static SkScalar xOffset = 5.f; |
136 | 136 |
137 path->moveTo(32.669998f + xOffset, 9.8640003f); | 137 path->moveTo(32.669998f + xOffset, 9.8640003f); |
138 path->lineTo(0.33000004f + xOffset, 9.8640003f); | 138 path->lineTo(0.33000004f + xOffset, 9.8640003f); |
139 path->lineTo(0.33000004f + xOffset, 50.669998f); | 139 path->lineTo(0.33000004f + xOffset, 50.669998f); |
140 path->lineTo(32.669998f + xOffset, 50.669998f); | 140 path->lineTo(32.669998f + xOffset, 50.669998f); |
141 path->lineTo(32.669998f + xOffset, 9.8640003f); | 141 path->lineTo(32.669998f + xOffset, 9.8640003f); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 } | 267 } |
268 | 268 |
269 } | 269 } |
270 | 270 |
271 private: | 271 private: |
272 typedef skiagm::GM INHERITED; | 272 typedef skiagm::GM INHERITED; |
273 }; | 273 }; |
274 | 274 |
275 DEF_GM(return new SmallPathsGM;) | 275 DEF_GM(return new SmallPathsGM;) |
276 | 276 |
OLD | NEW |