summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorcaryclark <caryclark@google.com>2016-01-20 12:13:28 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-20 20:15:33 +0000
commit9c4f74ba8afa30e31293bd291c0941397fcfe9a3 (patch)
tree4ccb7c5529f6baca27796cb40b6c3f2f06989cbc /skia
parent102f6a1868e5bfdacf24f66c83f107dfc43e35f5 (diff)
downloadchromium_src-9c4f74ba8afa30e31293bd291c0941397fcfe9a3.zip
chromium_src-9c4f74ba8afa30e31293bd291c0941397fcfe9a3.tar.gz
chromium_src-9c4f74ba8afa30e31293bd291c0941397fcfe9a3.tar.bz2
add legacy arcto flag
Skia used quadratics to approximate the arc specified by the pt/pt/radius version of arcTo(), which in turn is called by <canvas>. A future Skia CL will replace this with a conic implmentation to match circles and oval-based arcs. This adds a legacy flag to keep the old behavior until the changed layout test results can be rebaselined. NOTRY=true R=fmalita@chromium.org BUG=578885 Review URL: https://codereview.chromium.org/1610773002 Cr-Commit-Position: refs/heads/master@{#370471}
Diffstat (limited to 'skia')
-rw-r--r--skia/config/SkUserConfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/skia/config/SkUserConfig.h b/skia/config/SkUserConfig.h
index 410683a..b8aee5a 100644
--- a/skia/config/SkUserConfig.h
+++ b/skia/config/SkUserConfig.h
@@ -246,6 +246,10 @@ SK_API void SkDebugf_FileLine(const char* file, int line, bool fatal,
# define SK_SUPPORT_LEGACY_TRANSLATEROUNDHACK
#endif
+#ifndef SK_SUPPORT_LEGACY_ARCTO
+# define SK_SUPPORT_LEGACY_ARCTO
+#endif
+
///////////////////////// Imported from BUILD.gn and skia_common.gypi
/* In some places Skia can use static initializers for global initialization,