Remove SAA code when SK_FORCE_AAA is defined
We already removed AAA when SK_DISABLE_AAA was defined. This lets us
flip the define and avoid (too much?) code bloat.
From local testing, it appears that AAA is 60k larger than SAA? Sigh.
Change-Id: Ie185de804b9face33220820ff6cdccaad2c92c2c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/658016
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Herb Derby <herb@google.com>
diff --git a/src/core/SkScan_SAAPath.cpp b/src/core/SkScan_SAAPath.cpp
index 0ae6ce5..ec9b1ec 100644
--- a/src/core/SkScan_SAAPath.cpp
+++ b/src/core/SkScan_SAAPath.cpp
@@ -14,6 +14,14 @@
#include "src/core/SkAntiRun.h"
#include "src/core/SkBlitter.h"
+#if defined(SK_FORCE_AAA)
+
+void SkScan::SAAFillPath(const SkPath&, SkBlitter*, const SkIRect&, const SkIRect&, bool) {
+ SkDEBUGFAIL("SAA Disabled");
+}
+
+#else
+
#define SHIFT SK_SUPERSAMPLE_SHIFT
#define SCALE (1 << SHIFT)
#define MASK (SCALE - 1)
@@ -599,3 +607,5 @@
sk_fill_path(path, clipBounds, &superBlit, ir.fTop, ir.fBottom, SHIFT, containedInClip);
}
}
+
+#endif // defined(SK_FORCE_AAA)