Never consolidate data in ICO decoder
Follows the same approach as BMPImageDecoder: Use a FastSharedBufferReader to avoid consolidation. Add an optional offset to PNGImageDecoder for ICOImageDecoder, so that PNGImageDecoder can read a PNG subimage in an ICO without copying the data. This eliminates another call to SharedBuffer::data(), as well as a copy to create the separate SharedBuffer for PNG. BUG=467772 BUG=528625 Review URL: https://codereview.chromium.org/1316203008 git-svn-id: svn://svn.chromium.org/blink/trunk@201981 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment