Bug 688365 - Enable Skia 'New AA' mode. r=jrmuizel

This commit is contained in:
Matt Woodrow 2011-10-31 13:47:43 +13:00
parent 886c69cb88
commit 75646cdbb8
3 changed files with 25 additions and 1 deletions

22
gfx/skia/new-aa.patch Normal file
View File

@ -0,0 +1,22 @@
diff --git a/gfx/skia/src/core/SkScan_AntiPath.cpp b/gfx/skia/src/core/SkScan_AntiPath.cpp
--- a/gfx/skia/src/core/SkScan_AntiPath.cpp
+++ b/gfx/skia/src/core/SkScan_AntiPath.cpp
@@ -26,17 +26,17 @@
this is often faster for large objects with big spans
NEW_AA is a set of code-changes to try to make both paths produce identical
results. Its not quite there yet, though the remaining differences may be
in the subsequent blits, and not in the different masks/runs...
*/
//#define FORCE_SUPERMASK
//#define FORCE_RLE
-//#define SK_SUPPORT_NEW_AA
+#define SK_SUPPORT_NEW_AA
///////////////////////////////////////////////////////////////////////////////
class BaseSuperBlitter : public SkBlitter {
public:
BaseSuperBlitter(SkBlitter* realBlitter, const SkIRect& ir,
const SkRegion& clip);

View File

@ -31,7 +31,7 @@
*/
//#define FORCE_SUPERMASK
//#define FORCE_RLE
//#define SK_SUPPORT_NEW_AA
#define SK_SUPPORT_NEW_AA
///////////////////////////////////////////////////////////////////////////////

View File

@ -99,3 +99,5 @@ patch -p3 < arm-opts.patch
patch -p3 < fix-gradient-clamp.patch
# Bug 687189 - Implement SkPaint::getPosTextPath.
patch -p3 < getpostextpath.patch
# Bug 688365 - Enable Skia 'New AA' mode.
patch -p3 < new-aa.patch