diff options
author | Hal Canary <halcanary@google.com> | 2017-11-27 09:33:44 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-27 14:59:45 +0000 |
commit | dfaa057c15180a18f65d86317618a97d683e99c4 (patch) | |
tree | ada25c82afb8f2f6817692f02e8b9f89ac30271d /gm | |
parent | 4b0e364f92a91f935c4127a6ebe51a2557abb8ad (diff) |
SkPDF: less tolerance for small circles
BUG=chromium:772953
Change-Id: I9452ac8ad66ab8be26a9388f8c85a1f0e61bd392
Reviewed-on: https://skia-review.googlesource.com/75960
Reviewed-by: Cary Clark <caryclark@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'gm')
-rw-r--r-- | gm/circle_sizes.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gm/circle_sizes.cpp b/gm/circle_sizes.cpp new file mode 100644 index 0000000000..8ed95dd0ed --- /dev/null +++ b/gm/circle_sizes.cpp @@ -0,0 +1,16 @@ +/* + * Copyright 2017 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ +#include "gm.h" +// https://crbug.com/772953 +DEF_SIMPLE_GM(circle_sizes, canvas, 128, 128) { + SkPaint p; + p.setAntiAlias(true); + for (int i = 0; i < 16; ++i) { + canvas->drawCircle({14.0f + 32.0f * (i % 4), + 14.0f + 32.0f * (i / 4)}, i + 1.0f, p); + } +} |