Skip makeImageSnapshot for CopyOutput readback
It doesn't seem to work for the root sk_surface_ with SkDDL. Plus, we might skip an unnecessary copy. Specifically, when we do a makeImageSnapshot, we are probably doing a GPU --> GPU memory copy. This is followed by a GPU --> CPU memory copy to turn the SkImage into a SkBitmap. With the new code, Skia may optimize to a single GPU --> CPU memory copy. Bug: 911643 Change-Id: Ia456a9bba1a59f7f37134a8642a76064a54bf75f Reviewed-on: https://chromium-review.googlesource.com/c/1387024Reviewed-by:Yuri Wiitala <miu@chromium.org> Reviewed-by:
Peng Huang <penghuang@chromium.org> Commit-Queue: Jonathan Backer <backer@chromium.org> Cr-Commit-Position: refs/heads/master@{#618670}
Showing
Please register or sign in to comment