Add GetSkImageInfo() API to PaintImage
The goal is to remove GetSkImage() from PaintImage since when texture backed, this API may incur the cost of a GPU to CPU readback. By using GetSkImageInfo() for image metadata, we can avoid expensive calls to GetSkImage(). This change replaces some of the remaining callers of GetSkImage(). More details about overall PaintImage effort: crbug.com/1023259 Info about the OOPR-Canvas2D project: crbug.com/1018894 Bug: 1031050 Change-Id: Id7b3d8e779784d9790a43b922f4470234b17795d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2242653 Commit-Queue: Jonah Chin <jochin@microsoft.com> Reviewed-by:Fernando Serboncini <fserb@chromium.org> Reviewed-by:
Khushal <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/master@{#786066}
Showing
Please register or sign in to comment