|
|
57077a |
# HG changeset patch
|
|
|
57077a |
# Parent aecb4600e5da17443b224c79eee178c1d8e155e3
|
|
|
57077a |
For FF68, AntiAliasing of XULTexts seem to be broken on big endian (s390x). Text and icons of the sandwich-menu to the
|
|
|
57077a |
right of the address bar, as well as plugin-windows appears transparant, which usually means unreadable (white on white).
|
|
|
57077a |
|
|
|
57077a |
diff -r aecb4600e5da gfx/skia/skia/include/private/SkNx.h
|
|
|
57077a |
--- a/gfx/skia/skia/include/private/SkNx.h Tue Aug 20 09:46:55 2019 +0200
|
|
|
57077a |
+++ b/gfx/skia/skia/include/private/SkNx.h Mon Sep 09 10:04:06 2019 +0200
|
|
|
57077a |
@@ -238,7 +238,18 @@
|
|
|
57077a |
AI SkNx operator*(const SkNx& y) const { return fVal * y.fVal; }
|
|
|
57077a |
AI SkNx operator/(const SkNx& y) const { return fVal / y.fVal; }
|
|
|
57077a |
|
|
|
57077a |
+ // On Big endian the commented out variant doesn't work,
|
|
|
57077a |
+ // and honestly, I have no idea why it exists in the first place.
|
|
|
57077a |
+ // The reason its broken is, I think, that it defaults to the double-variant of ToBits()
|
|
|
57077a |
+ // which gets a 64-bit integer, and FromBits returns 32-bit,
|
|
|
57077a |
+ // cutting off the wrong half again.
|
|
|
57077a |
+ // Overall, I see no reason to have ToBits and FromBits at all (even for floats/doubles).
|
|
|
57077a |
+ // Still we are only "fixing" this for big endian and leave little endian alone (never touch a running system)
|
|
|
57077a |
+#ifdef SK_CPU_BENDIAN
|
|
|
57077a |
+ AI SkNx operator&(const SkNx& y) const { return fVal & y.fVal; }
|
|
|
57077a |
+#else
|
|
|
57077a |
AI SkNx operator&(const SkNx& y) const { return FromBits(ToBits(fVal) & ToBits(y.fVal)); }
|
|
|
57077a |
+#endif
|
|
|
57077a |
AI SkNx operator|(const SkNx& y) const { return FromBits(ToBits(fVal) | ToBits(y.fVal)); }
|
|
|
57077a |
AI SkNx operator^(const SkNx& y) const { return FromBits(ToBits(fVal) ^ ToBits(y.fVal)); }
|
|
|
57077a |
|
|
|
57077a |
diff -r aecb4600e5da gfx/skia/skia/src/opts/SkBlitMask_opts.h
|
|
|
57077a |
--- a/gfx/skia/skia/src/opts/SkBlitMask_opts.h Tue Aug 20 09:46:55 2019 +0200
|
|
|
57077a |
+++ b/gfx/skia/skia/src/opts/SkBlitMask_opts.h Mon Sep 09 10:04:06 2019 +0200
|
|
|
57077a |
@@ -203,7 +203,13 @@
|
|
|
57077a |
// ~~~>
|
|
|
57077a |
// a = 1*aa + d(1-1*aa) = aa + d(1-aa)
|
|
|
57077a |
// c = 0*aa + d(1-1*aa) = d(1-aa)
|
|
|
57077a |
+
|
|
|
57077a |
+ // For big endian we have to swap the alpha-mask from 0,0,0,255 to 255,0,0,0
|
|
|
57077a |
+#ifdef SK_CPU_BENDIAN
|
|
|
57077a |
+ return Sk4px(Sk16b(aa) & Sk16b(255,0,0,0, 255,0,0,0, 255,0,0,0, 255,0,0,0))
|
|
|
57077a |
+#else
|
|
|
57077a |
return Sk4px(Sk16b(aa) & Sk16b(0,0,0,255, 0,0,0,255, 0,0,0,255, 0,0,0,255))
|
|
|
57077a |
+#endif
|
|
|
57077a |
+ d.approxMulDiv255(aa.inv());
|
|
|
57077a |
};
|
|
|
57077a |
while (h --> 0) {
|