aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRasterPipeline.h
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-09-22 15:32:59 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-22 22:06:08 +0000
commitf3b4e16c36a6c789fc129aa3bd15c34b44ee8743 (patch)
tree441fddf9ad89c5d606b40ac2597bfc5844fea7ec /src/core/SkRasterPipeline.h
parent6f67cf7c4e14a65a54ee1fc67e81e5aa3d1e3d0e (diff)
Fold clamp_{x,y} into the gathers.
All three image tile modes go through exclusive_clamp() and then a gather today, so we can move the work of exclusive_clamp() into eac gather_ stage, eliminating the need for clamp_{x,y} stages. Luckily, we've got a convenient place to bottleneck this, ptr_and_ix(), which works out the pointer and vector of indices to load for gathers. This deletes SkRasterPipeline_repeat_tiling unit test, which now no longer exactly makes sense. It tests that repeat_x does that clamp, but that's now done automatically outside that stage. Change-Id: I24637ef60921bec7aa00082984c0c6a49dd86ca9 Reviewed-on: https://skia-review.googlesource.com/50260 Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Mike Reed <reed@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'src/core/SkRasterPipeline.h')
-rw-r--r--src/core/SkRasterPipeline.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkRasterPipeline.h b/src/core/SkRasterPipeline.h
index b6cb71c4b1..f5fad0086f 100644
--- a/src/core/SkRasterPipeline.h
+++ b/src/core/SkRasterPipeline.h
@@ -73,8 +73,8 @@ struct SkJumper_Engine;
M(parametric_a) M(gamma) \
M(table_r) M(table_g) M(table_b) M(table_a) \
M(lab_to_xyz) \
- M(clamp_x) M(mirror_x) M(repeat_x) \
- M(clamp_y) M(mirror_y) M(repeat_y) \
+ M(mirror_x) M(repeat_x) \
+ M(mirror_y) M(repeat_y) \
M(clamp_x_1) M(mirror_x_1) M(repeat_x_1) \
M(bilinear_nx) M(bilinear_px) M(bilinear_ny) M(bilinear_py) \
M(bicubic_n3x) M(bicubic_n1x) M(bicubic_p1x) M(bicubic_p3x) \