mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-06 06:33:30 +00:00
CopyExternalTextureForBrowser() uses external texture visible rect as source size in previous. But video frame natural size is the only one developer could get from HTMLVideoElement and it means the size browser present video on screen. This CL add "natural size" in imageCopyExternalTexture and uses this size as CopyExternalTextureForBrowser() source size. Bug:dawn:1694 Change-Id: I2a3bfa8e689df11d1d13320d40ad02c7090425e5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/123380 Commit-Queue: Shaobo Yan <shaobo.yan@intel.com> Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>