diff options
author | Mike Klein <mtklein@chromium.org> | 2017-08-09 18:23:25 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-10 14:34:35 +0000 |
commit | c2f876bb8d8991e428467c1d7d24152eea629770 (patch) | |
tree | 5f94199f289e68b418dfc6cafc9516e81141454d /src/core/SkRasterPipeline.h | |
parent | f4874bc5c14242dc482882252f8a8d482aa11508 (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.h | 3 |
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: |