Revert "Remove legacy precision boundary"
This reverts commit a2513c14c4e143984b2eec07f5263b5cdc6c84bb.
Reason for revert: This is breaking the Android roll.
Original change's description:
> Remove legacy precision boundary
>
> Bug: skia:7731
> Change-Id: I86a87b960541c2bc7b099ca9f609342cb0bbf563
> Reviewed-on: https://skia-review.googlesource.com/115652
> Reviewed-by: Cary Clark <caryclark@google.com>
> Commit-Queue: Yuqian Li <liyuqian@google.com>
TBR=caryclark@google.com,fmalita@chromium.org,liyuqian@google.com,reed@google.com
Change-Id: I45b14f5a84e97cc1022b99c414f90126d368f598
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:7731
Reviewed-on: https://skia-review.googlesource.com/115840
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Derek Sollenberger <djsollen@google.com>
diff --git a/src/core/SkCoverageDelta.h b/src/core/SkCoverageDelta.h
index 62dee61..1375489 100644
--- a/src/core/SkCoverageDelta.h
+++ b/src/core/SkCoverageDelta.h
@@ -107,8 +107,13 @@
class SkCoverageDeltaMask {
public:
+#ifdef SK_SUPPORT_LEGACY_PRECISION_BOUNDARY
+ // 1 for precision error, 1 for boundary delta (e.g., -SK_Fixed1 at fBounds.fRight + 1)
+ static constexpr int PADDING = 2;
+#else
// 3 for precision error, 1 for boundary delta (e.g., -SK_Fixed1 at fBounds.fRight + 1)
static constexpr int PADDING = 4;
+#endif
static constexpr int SIMD_WIDTH = 8;
static constexpr int SUITABLE_WIDTH = 32;