diff options
author | Mike Klein <mtklein@chromium.org> | 2017-05-03 13:05:13 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-03 18:16:53 +0000 |
commit | 581e69865ef5425aa5c9dba173b346dff1ec5652 (patch) | |
tree | 455da6bb480b9c06b1f1bc71fbc6d36610771978 /src/jumper/SkJumper.h | |
parent | 40226b46ad5fe7b7ee5098380fe8aef9f2318f45 (diff) |
dither stage
I think we can dither generically as a pipeline stage.
I'm not married to where the dither happens, or the implementation,
which is mostly cribbed from
https://en.wikipedia.org/wiki/Ordered_dithering.
BUG=skia:3302,skia:6224
Change-Id: If7f6b22a523ca0b34cb03c0aa97b6734c34e0133
Reviewed-on: https://skia-review.googlesource.com/15161
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'src/jumper/SkJumper.h')
-rw-r--r-- | src/jumper/SkJumper.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jumper/SkJumper.h b/src/jumper/SkJumper.h index cd164fe913..9c805b3b8e 100644 --- a/src/jumper/SkJumper.h +++ b/src/jumper/SkJumper.h @@ -94,4 +94,9 @@ struct SkJumper_ParametricTransferFunction { float G, A,B,C,D,E,F; }; +struct SkJumper_DitherCtx { + const int* y; + float rate; +}; + #endif//SkJumper_DEFINED |