Commit graph

13 commits

Author SHA1 Message Date
Roy Tam
6d191b58d4 Merge remote-tracking branch 'origin/master' into custom 2019-09-06 23:57:22 +08:00
Markus Stange
cb6b60ce61 Correctly return zero vertices if clipping plane 0 or 2 clip away the
entire polygon.

This fixes a bug that was introduced three years ago in BZ bug 1268854.
What happened was that the final pass over the polygon assumed that the
current polygon was living in plane[0]. But due to the double buffering,
the "current" polygon alternates between plane[0] and plane[1].
The bug had also introduced an early exit so that we could hit the final
pass at a time where the current, now empty, polygon was in plane[1]. So
we would incorrectly treat all 32 points in plane[0] as part of the
final polygon.

This bug was responsible for intermittently unreasonable numbers in
CompositorOGL's fill rate / overdraw overlay.

This fixes a regression caused by the fix for CVE-2016-5252.
2019-09-06 23:49:19 +08:00
wolfbeast
d6ceb39e25 Revert "Correctly return zero vertices if clipping plane 0 or 2 clip away the"
This reverts commit 09a8b2f19689b679b1268a3004ec5e3f37b9732a.
2019-09-06 23:49:17 +08:00
wolfbeast
de215d77fc Correctly return zero vertices if clipping plane 0 or 2 clip away the
entire polygon.

This fixes a regression caused by the fix for CVE-2016-5252
2019-09-06 23:48:46 +08:00
Roy Tam
51fa1b8bdb Merge remote-tracking branch 'origin/master' into custom 2019-04-04 20:32:53 +08:00
cku
f9ae2860ab Bug 1360343 - ensure maskSurface is not null before dereference, since it can be null because of OOM or gfx device reset. r=dvander
MozReview-Commit-ID: HX2qsWLZpMg

--HG--
extra : rebase_source : 046befc11151461a682842c31e2ce39247a5e1d8
2019-04-04 20:30:32 +08:00
Roy Tam
3dea264e2b Merge remote-tracking branch 'origin/master' into custom 2019-03-09 10:25:10 +08:00
wolfbeast
d68b5ee06d Remove texture layout endian-ness check for Moz2D.
This resolves #986.

This removes endian-based inversion of texture layout aliases when
represented as uint32. This inversion was incorrect and would cause
unknown texture formats as a result on big-endian machines (PPC64).
2019-03-09 10:21:33 +08:00
Roy Tam
0d6f4484c4 miscellaneous Windows XP fixes 2019-02-22 22:04:03 +08:00
wolfbeast
d203062c4e Switch to Lanczos scaling from Hamming to get acceptable fast downscaling.
In visual tests we see that Hamming-1 is not as good as
Lanczos-2, however it is about 40% faster, and Lanczos-2 itself is
about 30% faster than Lanczos-3. The use of Hamming-1 has been deemed
an unacceptable trade-off between quality and speed due to the limited
pixel space it operates in, so we pick Lanczos-2 here.
On modern hardware, Lanczos-2 doesn't have any noticeable impact
in normal use.
2019-02-16 00:08:42 +08:00
wolfbeast
a1fee5622b Improve the SSSE3 scaler. 2019-02-16 00:01:57 +08:00
Miko Mynttinen
f350fa8432 Bug 1393367 - Change MOZ_ASSERT to MOZ_RELEASE_ASSERT. r=mstange, r=fbraun, a=RyanVM
--HG--
extra : source : 1908cd8ed88dd4f77a99dff39c193d7d3f435195
extra : intermediate-source : 9718d92fab4d9a39acdc2afb0302b6fcd7997f6c
2019-02-15 23:47:25 +08:00
Roy Tam
dcd9973243 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00