Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: gm/smallpaths.cpp

Issue 1462903002: Shift up bottom path in smallpaths GM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698