diff options
-rw-r--r-- | src/core/SkScan_AntiPath.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/SkScan_AntiPath.cpp b/src/core/SkScan_AntiPath.cpp index be91007ecb..093de43403 100644 --- a/src/core/SkScan_AntiPath.cpp +++ b/src/core/SkScan_AntiPath.cpp @@ -638,6 +638,11 @@ static bool suitableForAAA(const SkPath& path) { if (gSkForceAnalyticAA.load()) { return true; } +#ifndef SK_SUPPORT_LEGACY_RECT + if (path.isRect(nullptr)) { + return true; + } +#endif const SkRect& bounds = path.getBounds(); // When the path have so many points compared to the size of its bounds/resolution, // it indicates that the path is not quite smooth in the current resolution: |