diff options
author | Jim Van Verth <jvanverth@google.com> | 2018-10-19 22:09:28 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-10-20 02:54:51 +0000 |
commit | 47133fdb992afa93f7f2948a944d89bada104b76 (patch) | |
tree | d01256aa6e2ded9ba99baed36907296d9cfa8fad /src/image | |
parent | 0c226492507a0c9241efbc42e116e5c1177171ed (diff) | |
download | skqp-47133fdb992afa93f7f2948a944d89bada104b76.tar.gz |
ColorType fixes for wacky_yuv_textures.
* Make sure SkBitmaps created have the correct swizzle
Bug: skia:7903
Change-Id: If062bd144da9d9a65b9b7336a7dcf2f62b02f50a
Reviewed-on: https://skia-review.googlesource.com/c/163884
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/image')
-rw-r--r-- | src/image/SkImage_Gpu.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/image/SkImage_Gpu.cpp b/src/image/SkImage_Gpu.cpp index e913a6c887..4ef8b1ce29 100644 --- a/src/image/SkImage_Gpu.cpp +++ b/src/image/SkImage_Gpu.cpp @@ -157,6 +157,7 @@ sk_sp<SkImage> SkImage_Gpu::ConvertYUVATexturesToRGB( // TODO: Instead of using assumption about whether it is NV12 format to guess colorType, // actually use channel information here. + // Alternate TODO: Don't bother validating. if (!ValidateBackendTexture(ctx, yuvaTexturesCopy[yuvaIndex.fIndex], &yuvaTexturesCopy[yuvaIndex.fIndex].fConfig, ct, kPremul_SkAlphaType, nullptr)) { |