Chrome OS settings: Don't process avatar images on the UI thread
When the user selects a JPG file from disk to use as their profile image we send the image to the renderer as a base64 encoded PNG. The PNG encoding can be slow, so post a task to move encoding off the UI thread. Test: Open OS settings > Personalization > Change device account image, and select a large JPEG. Select file window closing animation plays smoothly. Bug: 812180 Change-Id: Ied7cebe1e85be580b5cd49e5ffb077815e73ebba Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1826002 Commit-Queue: James Cook <jamescook@chromium.org> Commit-Queue: Xiyuan Xia <xiyuan@chromium.org> Auto-Submit: James Cook <jamescook@chromium.org> Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#700451}
Showing
Please register or sign in to comment