diff options
author | Jim Van Verth <jvanverth@google.com> | 2016-12-19 14:45:19 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-12-19 20:37:56 +0000 |
commit | 6750e91544b98b839c3148baef996ab2860233a4 (patch) | |
tree | 9a7e8446703cf2776737d8cd05bac6179228f937 /gm/conicpaths.cpp | |
parent | 2410717f900c2691db880d84a2e03a6a24905ee2 (diff) |
Fix precision errors in large circle rendering.
BUG=skia:6044
Change-Id: I2ff2a80e1e6798ad18d1c8ec97e8b0fcc731e9af
Reviewed-on: https://skia-review.googlesource.com/6281
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'gm/conicpaths.cpp')
-rw-r--r-- | gm/conicpaths.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gm/conicpaths.cpp b/gm/conicpaths.cpp index 6d1fc00f22..d0c6a9fc5d 100644 --- a/gm/conicpaths.cpp +++ b/gm/conicpaths.cpp @@ -148,6 +148,17 @@ DEF_SIMPLE_GM(arccirclegap, canvas, 250, 250) { canvas->drawPath(path, paint); } +/* circle should be antialiased */ +DEF_SIMPLE_GM(largecircle, canvas, 250, 250) { + canvas->translate(50, 100); + SkPoint c = { 1052.5390625f, 506.8760978034711f }; + SkScalar radius = 1096.702150363923f; + SkPaint paint; + paint.setAntiAlias(true); + paint.setStyle(SkPaint::kStroke_Style); + canvas->drawCircle(c.fX, c.fY, radius, paint); +} + DEF_SIMPLE_GM(crbug_640176, canvas, 250, 250) { SkPath path; path.moveTo(SkBits2Float(0x00000000), SkBits2Float(0x00000000)); // 0, 0 |