aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/jumper/SkJumper_misc.h
diff options
context:
space:
mode:
authorGravatar Herb Derby <herb@google.com>2017-05-15 10:49:39 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-15 15:11:46 +0000
commit4de1304297d7220b223c829bf386f97815db1654 (patch)
treed6be06494911979aa9771f19177cc216e771954e /src/jumper/SkJumper_misc.h
parent36015ab7962b7536f6572f2431b8c32cf45ab0b7 (diff)
Add evenly spaced stops and unify gradient contexts
Change-Id: I17ac13b9d1ea6765e2c1a2b53aa6975eab408856 Reviewed-on: https://skia-review.googlesource.com/16713 Commit-Queue: Herb Derby <herb@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/jumper/SkJumper_misc.h')
-rw-r--r--src/jumper/SkJumper_misc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jumper/SkJumper_misc.h b/src/jumper/SkJumper_misc.h
index bc7fd22284..de747899a7 100644
--- a/src/jumper/SkJumper_misc.h
+++ b/src/jumper/SkJumper_misc.h
@@ -13,7 +13,12 @@
// Miscellany used by SkJumper_stages.cpp and SkJumper_vectors.h.
// Every function in this file should be marked static and inline using SI.
-#define SI static inline
+#if defined(JUMPER)
+ #define SI __attribute__((always_inline)) static inline
+#else
+ #define SI static inline
+#endif
+
template <typename T, typename P>
SI T unaligned_load(const P* p) { // const void* would work too, but const P* helps ARMv7 codegen.