SkRasterPipeline: implement support for SkTableColorFilter
authorMike Klein <mtklein@chromium.org>
Mon, 23 Jan 2017 19:06:55 +0000 (14:06 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Mon, 23 Jan 2017 19:55:20 +0000 (19:55 +0000)
commita9e8ef079bed014ef2b3f6951525cc662f649942
tree1c10d842951871e2b994c4b9d561a628d8e3fc42
parentb48fd3cc891bf3db0c354dcb6988e244ffd0dd65
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>
src/core/SkRasterPipeline.h
src/effects/SkTableColorFilter.cpp
src/opts/SkRasterPipeline_opts.h