aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/jumper/SkJumper.h
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2018-03-06 14:28:41 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-06 20:01:51 +0000
commit2c7113309144ff5fb3e7b8d75208bdf1b87b9feb (patch)
tree89d2cc429043b086fae40116b6296a5fc831dcbb /src/jumper/SkJumper.h
parent8994150a436f0e813e9a7b8a2dc0ad237f4e3513 (diff)
Cleaning up SkColorSpaceXform a bit
Remove SkColorSpaceXform_base from the inheritance chain. Move some enums only used within XYZ to be class scoped. Eliminate redundant context structs, and just use the SkJumper types directly. SkColorSpaceXform_Base still exists, but just to hold a couple static functions. Trying to untangle the dst gamma table mess next. Bug: skia: Change-Id: I6d2b7807c33e61a0d7df74e334356567d8a2c0e0 Reviewed-on: https://skia-review.googlesource.com/112601 Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Mike Klein <mtklein@chromium.org>
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 1429458d4a..e7bf9b2403 100644
--- a/src/jumper/SkJumper.h
+++ b/src/jumper/SkJumper.h
@@ -94,6 +94,11 @@ struct SkJumper_TableCtx {
int size;
};
+struct SkJumper_ByteTablesRGBCtx {
+ const uint8_t *r, *g, *b;
+ int n;
+};
+
// This should line up with the memory layout of SkColorSpaceTransferFn.
struct SkJumper_ParametricTransferFunction {
float G, A,B,C,D,E,F;