aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/utils.py
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2018-06-08 14:11:37 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-08 18:58:44 +0000
commit56893cd1759a3c5a1b57463d3a9858db4bd84abd (patch)
tree40f83debebcda0dd5cc336be6a3138feb83c0d83 /infra/bots/utils.py
parentd2ae4df90d430bb635c7bcc83723a6ee86a81376 (diff)
Fix A2B JPEG images on GPU backed xform or color-managed canvas
A2B images can't be transformed on the GPU, so ensure that they're "converted" before being uploaded. (This may just create a new lazy image with an updated color space). Then, when we're converting JPEG images (YUV) to textures, don't allow GPU decode if the result needs to go through A2B conversion (again, we can't do this). In that case, we just ask the generator (codec) for RGB data, which will trigger correct CPU conversion before the upload. Eventually this will be rewritten further, because we won't allow A2B data in SkColorSpace, but for now this fixes a problem that's not actually affecting any clients, but is blocking a GrColorSpaceXform refactor. Change-Id: I1ebef4a90773d21ec4011ed1ac16aed486ba5539 Reviewed-on: https://skia-review.googlesource.com/133447 Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: Mike Klein <mtklein@google.com> Auto-Submit: Brian Osman <brianosman@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'infra/bots/utils.py')
0 files changed, 0 insertions, 0 deletions