aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/jumper/SkJumper.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/jumper/SkJumper.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/jumper/SkJumper.h')
-rw-r--r--src/jumper/SkJumper.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jumper/SkJumper.h b/src/jumper/SkJumper.h
index a22bb22da1..d4e8ef4f37 100644
--- a/src/jumper/SkJumper.h
+++ b/src/jumper/SkJumper.h
@@ -121,4 +121,9 @@ struct SkJumper_UniformColorCtx {
uint32_t rgba;
};
+struct SkJumper_ColorLookupTableCtx {
+ const float* table;
+ int limits[4];
+};
+
#endif//SkJumper_DEFINED