aboutsummaryrefslogtreecommitdiff
path: root/src/image
diff options
context:
space:
mode:
authorJim Van Verth <jvanverth@google.com>2018-10-19 22:09:28 -0400
committerSkia Commit-Bot <skia-commit-bot@chromium.org>2018-10-20 02:54:51 +0000
commit47133fdb992afa93f7f2948a944d89bada104b76 (patch)
treed01256aa6e2ded9ba99baed36907296d9cfa8fad /src/image
parent0c226492507a0c9241efbc42e116e5c1177171ed (diff)
downloadskqp-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.cpp1
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)) {