Dither copies when decreasing precision below 32-bit.
authorMike Klein <mtklein@chromium.org>
Fri, 19 May 2017 23:15:55 +0000 (19:15 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 23 May 2017 19:45:46 +0000 (19:45 +0000)
commit6ebba9f5b26d556b0a22131749da680716059702
tree049ac06bee4a1863dc863bb90c5b38b3b7c59f34
parenta9e795eab5f59a52d96b8fdc39351452835f5eb9
Dither copies when decreasing precision below 32-bit.

Same GM diffs as the last attempt in 8888.

CQ_INCLUDE_TRYBOTS=skia.primary:Test-Android-Clang-PixelC-CPU-TegraX1-arm64-Release-Android,Test-Win2k8-MSVC-GCE-CPU-AVX2-x86-Release,Test-Android-Clang-Nexus10-CPU-Exynos5250-arm-Release-Android

BUG=chromium:720105

Still looking at why readpixels and readpixelspicture are so weird
(lots of black) when drawing into sRGB 8888.  Will follow up.

Change-Id: I223e3b74e567aea1acaffa8db6b24fbf22d98c97
Reviewed-on: https://skia-review.googlesource.com/17443
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Matt Sarett <msarett@google.com>
src/core/SkConvertPixels.cpp