aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/jumper/SkJumper.h
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-12-11 09:59:47 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-11 15:40:38 +0000
commita7fa3377d24643d86117159f8a58d2ee66880a4d (patch)
treeb9de6f1caf6d2305e040d4bdb9babf9d2431593c /src/jumper/SkJumper.h
parentc34676349da62fe8db082dd1a911baa750fd5eca (diff)
add experimental bilerp_clamp_8888 stage
It looks like we can specialize hot image shaders into their own single stages for a good speedup on both x86 and ARM. I've started here with bilerp_clamp_8888, and will follow up with bgra and 565, and lowp versions of those, and probably also the same for nearest neighbors. All pixels are identical in GMs. Change-Id: I2f6995767cd38053d670b8d0bfdb71b687803d70 Reviewed-on: https://skia-review.googlesource.com/82100 Reviewed-by: Yuqian Li <liyuqian@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/jumper/SkJumper.h')
-rw-r--r--src/jumper/SkJumper.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jumper/SkJumper.h b/src/jumper/SkJumper.h
index ea08e0d1ca..4dea21d90a 100644
--- a/src/jumper/SkJumper.h
+++ b/src/jumper/SkJumper.h
@@ -63,10 +63,10 @@ struct SkJumper_MemoryCtx {
};
struct SkJumper_GatherCtx {
- void* pixels;
- int stride;
- float width,
- height;
+ const void* pixels;
+ int stride;
+ float width;
+ float height;
};
// State shared by save_xy, accumulate, and bilinear_* / bicubic_*.