aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/circle_sizes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/circle_sizes.cpp')
-rw-r--r--gm/circle_sizes.cpp16
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);
+ }
+}