commit | 7b1bebf1ec982e4de904c96b665f88b67857a1b0 | [log] [tgz] |
---|---|---|
author | Greg Daniel <egdaniel@google.com> | Tue Jul 16 17:09:59 2019 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Jul 16 21:36:47 2019 +0000 |
tree | c37695bbc28d7473387e40f27d02d28bf63c05e3 | |
parent | 56aa3372ca250b12cb807e3871c525d13dc51d49 [diff] |
Fix creating gpu texture from raster image. In the new world if the GrColorType cannot creating a support backend format it returns an invalid GrBackendFormat. So we need to check this in our fallback when uploading raster image to gpu. Change-Id: Ie69a06ba1a0badb5b7e78965906f09c0413453e2 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/227859 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>