-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize Canvas Image Source uploading path for CopyEI2T
Current uploading path of CopyExternalImageToTexture() is not performant due to: - it always upload full-sized source image to intermediate resource firstly. For cases that copy a small subrect from large source image, it wastes bandwidth. - CPU backed source uploading path cannot use intermediate cache system. So it always creates intermediate texture, intermediate buffer and destroy them. This CL optimizes the uploading path by: - It uploads the clipped rect from source image based on the copy size. - CPU and GPU backed resources can uses intermediate cache system now. Bug: chromium:1399391, dawn:1635 Change-Id: Ic9ff279cf2e2bb098c80488f5b14724967900ae2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4104499 Reviewed-by: Kenneth Russell <kbr@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Shaobo Yan <shaobo.yan@intel.com> Cr-Commit-Position: refs/heads/main@{#1099114}
- Loading branch information
Showing
8 changed files
with
251 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.