gecko-dev/image/test
Andrew Osmond 4479d80c10 Bug 1453454 - Improve SourceBuffer support for large encoded image data. r=jrmuizel
Regardless of the size of an encoded image, SourceBuffer::Compact would
try to consolidate all of the chunks into a single chunk. If an image is
quite large, it can be actively harmful to do this, because we want a
very large contiguous chunk of memory for no real reason, and spend
extra time on the main thread doing the memcpy/consolidation.

Instead we now cap out the chunk size at 20MB. If we start allocating
chunks of this size, we will not perform compacting when we have
received all of the data. (Save for realloc'ing the last chunk since it
probably isn't full.)

On a related note, if we hit an out-of-memory condition in the middle of
appending data to the SourceBuffer, we would swallow the error. This is
because nsIInputStream::ReadSegments will succeed if any data was
written. This leaves the SourceBuffer out of sync. We now propogate this
error up properly to the higher levels.

fixup
2018-05-09 09:31:07 -04: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 1446954: Cleanup !stylo and styloVsGecko test expectations. r=xidorn 2018-03-20 11:29:51 +01: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 1453454 - Improve SourceBuffer support for large encoded image data. r=jrmuizel 2018-05-09 09:31:07 -04:00
mochitest Bug 1456882 - Enable some passing mochitests on linux64-qr. r=jrmuizel 2018-04-25 11:29:07 -04:00
reftest Bug 1450015. Enable blob invalidation by default. r=gankro 2018-04-17 21:20:51 -04:00
unit Bug 1433175 - semi-automated indent fix, r=Mossop. 2018-02-28 18:51:34 +01:00