gecko-dev/image/test
Andrew Osmond eebcbbd123 Bug 1504448 - Fix buffering problems in WebPDecoder. r=tnikkel
There were two unrelated buffering problems in nsWebPDecoder. The first
was with the decoder contract. We are expected to loop until the
iterator is unable to provide more data, and wait for the SourceBuffer
to reschedule us, where as nsWebPDecoder::DoDecode only did one pass.
Thus when something yielded wanting more data, we would just wait
forever.

The second was the integration with the libwebp API. We are expected to
retry when we receive SUSPENDED from the decoder, as it decided to yield
pixels instead of continuing to decode as many as possible.

The tests did not cover the first problem because multi chunk decoder
tests do not use SourceBuffer scheduling. This is an oversight. They now
will write a chunk of data, let the SourceBuffer reschedule the decoder,
and repeat until all of the data has been written.

The tests did not cover the second problem because all of the reference
WebP images are too small. This patch adds a new test with a large WebP
image (converted from a Mozilla all hands photo of lanyards). This
should actually trigger the SUSPEND behaviour of libwebp.

Differential Revision: https://phabricator.services.mozilla.com/D10817
2018-11-07 06:28:38 -05:00
..
browser Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
crashtests Bug 1465107: Cleanup remaining mochitest / reftest / crashtests stylo expectations. r=xidorn 2018-05-30 10:03:50 +02:00
fuzzing Bug 1431090 - Prepare tools/fuzzing/ to be used with JS_STANDALONE. r=froydnj 2018-01-17 15:20:35 +01:00
gtest Bug 1504448 - Fix buffering problems in WebPDecoder. r=tnikkel 2018-11-07 06:28:38 -05:00
mochitest Bug 1354561 - Disable test_animSVGImage2.html on windows webrender for frequent failures. r=jmaher 2018-08-14 20:38:00 +03:00
reftest Bug 1486377. Avoid repeat sampling when not wanted. r=mstange 2018-09-07 18:12:21 -04:00
unit Bug 1491561 - Remove the XPCOM registrations for LoadContext; r=bzbarsky 2018-09-17 21:28:39 -04:00