aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRasterPipeline.h
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-08-09 18:23:25 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-10 14:34:35 +0000
commitc2f876bb8d8991e428467c1d7d24152eea629770 (patch)
tree5f94199f289e68b418dfc6cafc9516e81141454d /src/core/SkRasterPipeline.h
parentf4874bc5c14242dc482882252f8a8d482aa11508 (diff)
Replace interp() with clut_{3,4}D stages.
I tried to follow exactly the same strategy as a start. (Though I did fix the off-by-one dimensions.) It does rather look like we only need 3D and 4D now that I've looked at the call sites. Looks like about a 20% speedup. Change-Id: I8b1af64750ad1750716ee1ab0767e64591c7206a Reviewed-on: https://skia-review.googlesource.com/32842 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/core/SkRasterPipeline.h')
-rw-r--r--src/core/SkRasterPipeline.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkRasterPipeline.h b/src/core/SkRasterPipeline.h
index 5af5efca75..adb0ed0187 100644
--- a/src/core/SkRasterPipeline.h
+++ b/src/core/SkRasterPipeline.h
@@ -91,7 +91,8 @@ struct SkJumper_Engine;
M(xy_to_2pt_conical_linear) \
M(mask_2pt_conical_degenerates) M(apply_vector_mask) \
M(byte_tables) M(byte_tables_rgb) \
- M(rgb_to_hsl) M(hsl_to_rgb)
+ M(rgb_to_hsl) M(hsl_to_rgb) \
+ M(clut_3D) M(clut_4D)
class SkRasterPipeline {
public: