Don't use decode-to-scale ImageDecoder feature for icons.
Passing desired_size to ImageDecoder::Create() means that caller have checked that the size is possible by calling ImageDecoder::GetSupportedDecodeSizes(). Otherwise some issues may arise even for the formats that don't support decode-to-scale. On the other hand the only supported format (JPEG) isn't very popular for the icons. Better to simplify the code. Change-Id: I24e173ee0540bb5d7adc055ffaa8285bef8f90de Reviewed-on: https://chromium-review.googlesource.com/1253901Reviewed-by:Peter Beverloo <peter@chromium.org> Reviewed-by:
vmpstr <vmpstr@chromium.org> Commit-Queue: Peter Beverloo <peter@chromium.org> Cr-Commit-Position: refs/heads/master@{#595788}
Showing
Please register or sign in to comment