Check promise texture isn't null first
ImageContextImpl can sometimes not have a SkPromiseImageTexture associated with it and return null from promise_image_texture(). This happens when there the texture is missing and it's an external image that a fallback can't be created for. Check before trying to dereference a nullptr. Bug: 1148283, 1092080, 1148095 Change-Id: I45c0c5a233925b889778fe6e65f2b3fbfa077ecb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2533589Reviewed-by:Khushal <khushalsagar@chromium.org> Reviewed-by:
Peng Huang <penghuang@chromium.org> Commit-Queue: kylechar <kylechar@chromium.org> Cr-Commit-Position: refs/heads/master@{#826940}
Showing
Please register or sign in to comment