Simple GPU based dithering:
authorkrajcevski <krajcevski@google.com>
Thu, 19 Jun 2014 21:14:06 +0000 (14:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 19 Jun 2014 21:14:06 +0000 (14:14 -0700)
commitf461a8fdf642ba713dcdfb217534652df1eac278
tree6e1e18eaf27c8904e403ad5aa819f14972eff3df
parent8b2fac4b25dfb8180c54707f8e19698a9fddde07
Simple GPU based dithering:

If dithering is turned on, apply an effect that filters the pixel through
the following pipeline:

for each channel c:
  1. Compute quantized colors [low, high] that c is between
  2. Pick high by flipping a coin weighted by (c - low)

R=bsalomon@google.com, egdaniel@google.com, robertphillips@google.com

Author: krajcevski@google.com

Review URL: https://codereview.chromium.org/321253002
bench/GradientBench.cpp
expectations/gm/ignored-tests.txt
gyp/gpu.gypi
gyp/skia_for_chromium_defines.gypi
src/gpu/SkGr.cpp
src/gpu/effects/GrDitherEffect.cpp [new file with mode: 0644]
src/gpu/effects/GrDitherEffect.h [new file with mode: 0644]