Don't create a null image in createPattern
NullImage is a static ref that probably saves createPattern some time and memory if it's creating the same invalid pattern over and over again. Unfortunately it is not thread safe and createPattern needs to run in OffscreenCanvas workers as well. BitmapImage::Create has the same functionality, though perhaps some slight performance implications. Bug: 1045346 Change-Id: Iee5287321555ae0e4b7514305254fff97ae20fbb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2050674Reviewed-by:Jeremy Roman <jbroman@chromium.org> Commit-Queue: Aaron Krajeski <aaronhk@chromium.org> Cr-Commit-Position: refs/heads/master@{#740887}
Showing
Please register or sign in to comment