Call bitmapDraw() for dithering if necessary for converting color type.
This change performs bitmapDraw() only if dithering is necessary to avoid bitmapDraw() call that causes less responsiveness on low performance ARM devices. Canvas' bitmapDraw() was performed on a webOS ARM device on decoding image for images that don't need dithering when converting its color type. For example converting color type between RGBA8888 and BGRA8888, which is related endian, dithering is not necessary. Therefor these cases can be processed by SkPixmap's readPixels() that is more efficient than Canvas' bitmapDraw() for responsiveness of webpage. Change-Id: Ib33c062519b16429a83445bafa376f2540030425 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763523Reviewed-by:Florin Malita <fmalita@chromium.org> Reviewed-by:
Brian Osman <brianosman@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org> Cr-Commit-Position: refs/heads/master@{#691909}
Showing
Please register or sign in to comment