Fix color space handling in SkImage_Gpu::getROPixels
authorBrian Osman <brianosman@google.com>
Wed, 26 Apr 2017 20:26:39 +0000 (16:26 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 27 Apr 2017 12:50:12 +0000 (12:50 +0000)
commit6251771ebc5c4d7c98af3e2f3f2e7b22e490c1d5
treef824305370357af8b516b94412be43b73a4e6c10
parent56de05fec3fa2b99a21bc4c820e2d8c68eae8336
Fix color space handling in SkImage_Gpu::getROPixels

The dstColorSpace is a badly named parameter. It's a hint about where/how
the returned pixels are going to be used. Raster and GPU are meant to
ignore that information, codecs use it to drive our decoding heuristic.

This is a re-land of https://skia-review.googlesource.com/c/10109/

Bug: skia:
Change-Id: Iee006a8e014e028b4f0f2471d7152b6bccd72cb2
Reviewed-on: https://skia-review.googlesource.com/14404
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
src/image/SkImage_Gpu.cpp