diff options
author | 2017-01-23 14:06:55 -0500 | |
---|---|---|
committer | 2017-01-23 19:55:20 +0000 | |
commit | a9e8ef079bed014ef2b3f6951525cc662f649942 (patch) | |
tree | 1c10d842951871e2b994c4b9d561a628d8e3fc42 /src/core | |
parent | b48fd3cc891bf3db0c354dcb6988e244ffd0dd65 (diff) |
SkRasterPipeline: implement support for SkTableColorFilter
This adds and uses a byte_tables stage that converts to bytes, looks up
in the tables, then converts back to floats.
We treat this as color filter as pure math, not considering anything
colorspace related: no transfer functions, no gamut to change, etc.
Change-Id: If5fefc1bcef61a0fb0ae279002a0dd1547e429ea
Reviewed-on: https://skia-review.googlesource.com/7413
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkRasterPipeline.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkRasterPipeline.h b/src/core/SkRasterPipeline.h index 558eeade9f..44aa37946f 100644 --- a/src/core/SkRasterPipeline.h +++ b/src/core/SkRasterPipeline.h @@ -94,7 +94,8 @@ M(bicubic_n3x) M(bicubic_n1x) M(bicubic_p1x) M(bicubic_p3x) \ M(bicubic_n3y) M(bicubic_n1y) M(bicubic_p1y) M(bicubic_p3y) \ M(save_xy) M(accumulate) \ - M(linear_gradient_2stops) + M(linear_gradient_2stops) \ + M(byte_tables) class SkRasterPipeline { public: |