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

Side by Side Diff: gm/conicpaths.cpp

Issue 2276083002: tiny line breaks gl render (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 3 months 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 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 SkPaint paint; 140 SkPaint paint;
141 paint.setAntiAlias(true); 141 paint.setAntiAlias(true);
142 paint.setStyle(SkPaint::kStroke_Style); 142 paint.setStyle(SkPaint::kStroke_Style);
143 canvas->drawCircle(c.fX, c.fY, radius, paint); 143 canvas->drawCircle(c.fX, c.fY, radius, paint);
144 SkPath path; 144 SkPath path;
145 path.moveTo(288.88884710654133f, -280.26680862609f); 145 path.moveTo(288.88884710654133f, -280.26680862609f);
146 path.arcTo(0, 0, -39.00216443306411f, 400.6058925796476f, radius); 146 path.arcTo(0, 0, -39.00216443306411f, 400.6058925796476f, radius);
147 paint.setColor(0xff007f00); 147 paint.setColor(0xff007f00);
148 canvas->drawPath(path, paint); 148 canvas->drawPath(path, paint);
149 } 149 }
150
151 DEF_SIMPLE_GM(crbug_640176, canvas, 250, 250) {
152 SkPath path;
153 path.moveTo(SkBits2Float(0x00000000), SkBits2Float(0x00000000)); // 0, 0
154 path.lineTo(SkBits2Float(0x42cfd89a), SkBits2Float(0xc2700000)); // 103.923 f, -60
155 path.lineTo(SkBits2Float(0x42cfd899), SkBits2Float(0xc2700006)); // 103.923 f, -60
156 path.conicTo(SkBits2Float(0x42f00000), SkBits2Float(0xc2009d9c),
157 SkBits2Float(0x42f00001), SkBits2Float(0x00000000),
158 SkBits2Float(0x3f7746ea)); // 120, -32.1539f, 120, 0, 0.965926f
159
160 SkPaint paint;
161 paint.setAntiAlias(true);
162 canvas->translate(125, 125);
163 canvas->drawPath(path, paint);
164 }
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