aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/jumper/SkJumper_stages.cpp
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-04-06 17:53:18 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-06 23:06:04 +0000
commit7d3d8723319038d16456137ba932f238c1e65dbf (patch)
treeb9615f69226ae8fe3b25a27293c3cb58c08f9fdd /src/jumper/SkJumper_stages.cpp
parentb9a02a131eba272fbcae320c2bd6c0d668162c2e (diff)
jumper, gather_i8
Change-Id: Iefa8044bac0555c5fff370217a6270b4f3c64300 Reviewed-on: https://skia-review.googlesource.com/11582 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/jumper/SkJumper_stages.cpp')
-rw-r--r--src/jumper/SkJumper_stages.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/jumper/SkJumper_stages.cpp b/src/jumper/SkJumper_stages.cpp
index 6e9bb7dcbc..68f624033f 100644
--- a/src/jumper/SkJumper_stages.cpp
+++ b/src/jumper/SkJumper_stages.cpp
@@ -610,6 +610,14 @@ STAGE(gather_g8) {
a = 1.0_f;
}
+STAGE(gather_i8) {
+ auto c = (const GatherCtx*)ctx;
+ const uint8_t* ptr;
+ U32 ix = ix_and_ptr(&ptr, ctx, r,g);
+ ix = expand(gather(ptr, ix));
+ from_8888(gather(c->ctable, ix), &r,&g,&b,&a);
+}
+
STAGE(load_565) {
auto ptr = *(const uint16_t**)ctx + x;