aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/opts
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2016-11-29 12:46:58 -0500
committerGravatar Mike Klein <mtklein@chromium.org>2016-11-29 17:53:47 +0000
commitbddd234181fccb73af148d327386270e61197de9 (patch)
tree25f96aff7edf7c0ca73d5098360f9075081ed0cd /src/opts
parentf9f451213a3951d8a61568998de2ddbd643f6693 (diff)
document x_tail encoding
CQ_INCLUDE_TRYBOTS=skia.primary:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD Change-Id: Id9a6d00e68a7cf7464c6a561bd97e63abf6886c4 Reviewed-on: https://skia-review.googlesource.com/5307 Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'src/opts')
-rw-r--r--src/opts/SkRasterPipeline_opts.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/opts/SkRasterPipeline_opts.h b/src/opts/SkRasterPipeline_opts.h
index 5d7d08a404..a8cefcfc4f 100644
--- a/src/opts/SkRasterPipeline_opts.h
+++ b/src/opts/SkRasterPipeline_opts.h
@@ -36,10 +36,14 @@ namespace {
using SkNb = SkNx<N, uint8_t>;
struct Stage;
- using Fn = void(SK_VECTORCALL *)(Stage*, size_t, SkNf,SkNf,SkNf,SkNf,
- SkNf,SkNf,SkNf,SkNf);
+ using Fn = void(SK_VECTORCALL *)(Stage*, size_t x_tail, SkNf,SkNf,SkNf,SkNf,
+ SkNf,SkNf,SkNf,SkNf);
struct Stage { Fn next; void* ctx; };
+ // x_tail encodes two values x and tail as x*N+tail, where 0 <= tail < N.
+ // x is the induction variable we're walking along, incrementing by N each step.
+ // tail == 0 means work with a full N pixels; otherwise use only the low tail pixels.
+
} // namespace
#define SI static inline