I think it would be nice to try mozilla with 16bpp image rendering... It should help to reduce image size in memory and probably improve rendering speed. Also it should help to avoid additional data copying and color conversions which is using some CPU time in critical operations (flash video rendering in windowless plugins).
Created attachment 375672 [details] [diff] [review] Patch for cairo 1.8.6, adding 16bpp image surface format
Created attachment 375673 [details] [diff] [review] 16bpp image rendering support for mozilla. full patch
I'm not sure how to switch image decoders to 16 bit format... probably I need some help.
Probably to make decoders rendering into 16bpp we should create 16bit version for GFX_BLOCK_RGB_TO_FRGB GFX_PACKED_PIXEL And fix nsJPEGDecoder::OutputScanlines row_callback png decoder ConvertColormap - gif encoder nsXBMDecoder::ProcessData
Created attachment 375706 [details] [diff] [review] Added support for nsThebesImage