diff options
author | caryclark <caryclark@google.com> | 2016-01-19 09:57:16 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-19 09:57:16 -0800 |
commit | 94ec356ed4d8ed0cef39a43b221bee9394f74a8e (patch) | |
tree | a949ab2227cdb8e39264ad462ca7b86226184d92 /src/core/SkPathMeasure.cpp | |
parent | e83c8ebbc45eb5027795b5306942f686be413053 (diff) |
exclude new function from legacy code path
hopefully fixes the broken roll
TBR=dogben@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1605023002
Review URL: https://codereview.chromium.org/1605023002
Diffstat (limited to 'src/core/SkPathMeasure.cpp')
-rw-r--r-- | src/core/SkPathMeasure.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkPathMeasure.cpp b/src/core/SkPathMeasure.cpp index bc5350373c..5c4398527e 100644 --- a/src/core/SkPathMeasure.cpp +++ b/src/core/SkPathMeasure.cpp @@ -73,6 +73,7 @@ static bool quad_too_curvy(const SkPoint pts[3]) { return dist > CHEAP_DIST_LIMIT; } +#ifndef SK_SUPPORT_LEGACY_CONIC_MEASURE static bool conic_too_curvy(const SkPoint& firstPt, const SkPoint& midTPt, const SkPoint& lastPt) { SkPoint midEnds = firstPt + lastPt; @@ -81,6 +82,7 @@ static bool conic_too_curvy(const SkPoint& firstPt, const SkPoint& midTPt, SkScalar dist = SkMaxScalar(SkScalarAbs(dxy.fX), SkScalarAbs(dxy.fY)); return dist > CHEAP_DIST_LIMIT; } +#endif static bool cheap_dist_exceeds_limit(const SkPoint& pt, SkScalar x, SkScalar y) { |