mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
fb62ffc5a6
patch by Alfred Kayser <alfredkayser@nl.ibm.com> r=pavlov, sr=tor Patch description: 1. Use row_stride and bpr only in non-Cairo builds (for the RGBRow buffer) (as jpg scanlines are always 3 bytes (in current config anyway) 2. Use 'client_data' to keep the pointer to the decoder instead of the offsetof hack 3. Call 'img->ImageUpdated' not for every scanline, but for every batch of scanlines received (just like OnDataAvailable). Ad 1: Allows for better Cairo and non-Cairo separation Ad 2: Removes the need for the offsetof hack Ad 3: Makes image decoding for JPG in Cairo a lot faster (at least it feels faster) |
||
---|---|---|
.. | ||
bmp | ||
gif | ||
icon | ||
jpeg | ||
png | ||
xbm | ||
.cvsignore | ||
Makefile.in |