diff options
author | Yuqian Li <liyuqian@google.com> | 2018-01-08 13:59:14 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-07 14:22:57 +0000 |
commit | 14962b7f1341941ec1f2e759c4783f28fd0330c6 (patch) | |
tree | 9609fb7e41afaed2685fdc83dd6788383b784db7 /src | |
parent | 78de7519692ea93a2d2c70f8c0e773668df49fce (diff) |
Remove legacy small rect code
Bug: skia:
Change-Id: Id7c5ce5e3e9e74c16a10bec3d46f8ce1fcd588c9
Reviewed-on: https://skia-review.googlesource.com/92102
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkScan_AAAPath.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/SkScan_AAAPath.cpp b/src/core/SkScan_AAAPath.cpp index 06b3a276ed..94ddf73315 100644 --- a/src/core/SkScan_AAAPath.cpp +++ b/src/core/SkScan_AAAPath.cpp @@ -1697,11 +1697,6 @@ void SkScan::AAAFillPath(const SkPath& path, SkBlitter* blitter, const SkIRect& // rect, preparing a mask and blitting it might have too much overhead. Hence we'll use // blitFatAntiRect to avoid the mask and its overhead. if (MaskAdditiveBlitter::canHandleRect(ir) && !isInverse && !forceRLE) { -#ifdef SK_SUPPORT_LEGACY_SMALLRECT_AA - MaskAdditiveBlitter additiveBlitter(blitter, ir, clipBounds, isInverse); - aaa_fill_path(path, clipBounds, &additiveBlitter, ir.fTop, ir.fBottom, - containedInClip, true, forceRLE); -#else // blitFatAntiRect is slower than the normal AAA flow without MaskAdditiveBlitter. // Hence only tryBlitFatAntiRect when MaskAdditiveBlitter would have been used. if (!TryBlitFatAntiRect(blitter, path, clipBounds)) { @@ -1709,7 +1704,6 @@ void SkScan::AAAFillPath(const SkPath& path, SkBlitter* blitter, const SkIRect& aaa_fill_path(path, clipBounds, &additiveBlitter, ir.fTop, ir.fBottom, containedInClip, true, forceRLE); } -#endif } else if (!isInverse && path.isConvex()) { // If the filling area is convex (i.e., path.isConvex && !isInverse), our simpler // aaa_walk_convex_edges won't generate alphas above 255. Hence we don't need |