Fix SkColorSpaceXform F16 behavior
authorMatt Sarett <msarett@google.com>
Mon, 9 Jan 2017 14:14:28 +0000 (09:14 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Mon, 9 Jan 2017 14:48:33 +0000 (14:48 +0000)
commite980155dd5d0cb6a10c9823c351763d50993a08d
tree0e74ae250ab2013797b99444725a8485b959925c
parent9a34b8c77978b946eba961a21a091e65d6820589
Fix SkColorSpaceXform F16 behavior

After changing the matrix representation, we are no longer guaranteed
that the "a" in "rgba" is zeroed in store_f16_1() opaque.

This fixed Gold:
https://gold.skia.org/search?blame=26a0543579cf7473de2099ce0d056ac8aba83811&head=true&include=false&limit=50&neg=false&pos=false&query=source_type%3DcolorImage&unt=true

Also tacked on an optimization.  No need to load alpha when the image
is opaque.

BUG=skia:

Change-Id: I28d80c486b6644eee4a38a7a70f94eb51474e4b0
Reviewed-on: https://skia-review.googlesource.com/6738
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Matt Sarett <msarett@google.com>
src/core/SkColorSpaceXform.cpp