Function net::image_cache::decode_bytes_sync

source ยท
fn decode_bytes_sync(
    key: PendingImageId,
    bytes: &[u8],
    cors: CorsStatus,
) -> DecoderMsg
Expand description

TODO(gw): Remaining work on image cache: * Make use of the prefetch support in various parts of the code. * Profile time in GetImageIfAvailable - might be worth caching these results per paint / layout.

MAYBE(Yoric): * For faster lookups, it might be useful to store the LoadKey in the DOM once we have performed a first load.