Index: src/core/SkBitmapProcState.cpp |
diff --git a/src/core/SkBitmapProcState.cpp b/src/core/SkBitmapProcState.cpp |
index c85a5fb9926e934451636a6709a09ec2d3316325..487bd80402609f454b894e5e124eb5d8eb20c9eb 100644 |
--- a/src/core/SkBitmapProcState.cpp |
+++ b/src/core/SkBitmapProcState.cpp |
@@ -24,14 +24,14 @@ |
extern const SkBitmapProcState::SampleProc16 gSkBitmapProcStateSample16_neon[]; |
extern const SkBitmapProcState::SampleProc32 gSkBitmapProcStateSample32_neon[]; |
extern void S16_D16_filter_DX_neon(const SkBitmapProcState&, const uint32_t*, int, uint16_t*); |
-extern void Clamp_S16_D16_filter_DX_shaderproc_neon(const void *, int, int, uint16_t*, int); |
-extern void Repeat_S16_D16_filter_DX_shaderproc_neon(const void *, int, int, uint16_t*, int); |
+extern void Clamp_S16_D16_filter_DX_shaderproc_neon(const SkBitmapProcState&, int, int, uint16_t*, int); |
+extern void Repeat_S16_D16_filter_DX_shaderproc_neon(const SkBitmapProcState&, int, int, uint16_t*, int); |
extern void SI8_opaque_D32_filter_DX_neon(const SkBitmapProcState&, const uint32_t*, int, SkPMColor*); |
-extern void SI8_opaque_D32_filter_DX_shaderproc_neon(const void *, int, int, uint32_t*, int); |
-extern void Clamp_SI8_opaque_D32_filter_DX_shaderproc_neon(const void*, int, int, uint32_t*, int); |
+extern void SI8_opaque_D32_filter_DX_shaderproc_neon(const SkBitmapProcState&, int, int, uint32_t*, int); |
+extern void Clamp_SI8_opaque_D32_filter_DX_shaderproc_neon(const SkBitmapProcState&, int, int, uint32_t*, int); |
#endif |
-extern void Clamp_S32_opaque_D32_nofilter_DX_shaderproc(const void*, int, int, uint32_t*, int); |
+extern void Clamp_S32_opaque_D32_nofilter_DX_shaderproc(const SkBitmapProcState&, int, int, uint32_t*, int); |
#define NAME_WRAP(x) x |
#include "SkBitmapProcState_filter.h" |
@@ -391,11 +391,10 @@ |
return true; |
} |
-static void Clamp_S32_D32_nofilter_trans_shaderproc(const void* sIn, |
+static void Clamp_S32_D32_nofilter_trans_shaderproc(const SkBitmapProcState& s, |
int x, int y, |
SkPMColor* SK_RESTRICT colors, |
int count) { |
- const SkBitmapProcState& s = *static_cast<const SkBitmapProcState*>(sIn); |
SkASSERT(((s.fInvType & ~SkMatrix::kTranslate_Mask)) == 0); |
SkASSERT(s.fInvKy == 0); |
SkASSERT(count > 0 && colors != nullptr); |
@@ -466,11 +465,10 @@ |
return x; |
} |
-static void Repeat_S32_D32_nofilter_trans_shaderproc(const void* sIn, |
+static void Repeat_S32_D32_nofilter_trans_shaderproc(const SkBitmapProcState& s, |
int x, int y, |
SkPMColor* SK_RESTRICT colors, |
int count) { |
- const SkBitmapProcState& s = *static_cast<const SkBitmapProcState*>(sIn); |
SkASSERT(((s.fInvType & ~SkMatrix::kTranslate_Mask)) == 0); |
SkASSERT(s.fInvKy == 0); |
SkASSERT(count > 0 && colors != nullptr); |
@@ -507,11 +505,10 @@ |
} |
} |
-static void S32_D32_constX_shaderproc(const void* sIn, |
+static void S32_D32_constX_shaderproc(const SkBitmapProcState& s, |
int x, int y, |
SkPMColor* SK_RESTRICT colors, |
int count) { |
- const SkBitmapProcState& s = *static_cast<const SkBitmapProcState*>(sIn); |
SkASSERT((s.fInvType & ~(SkMatrix::kTranslate_Mask | SkMatrix::kScale_Mask)) == 0); |
SkASSERT(s.fInvKy == 0); |
SkASSERT(count > 0 && colors != nullptr); |
@@ -621,7 +618,7 @@ |
sk_memset32(colors, color, count); |
} |
-static void DoNothing_shaderproc(const void*, int x, int y, |
+static void DoNothing_shaderproc(const SkBitmapProcState&, int x, int y, |
SkPMColor* SK_RESTRICT colors, int count) { |
// if we get called, the matrix is too tricky, so we just draw nothing |
sk_memset32(colors, 0, count); |
@@ -814,9 +811,8 @@ |
/////////////////////// |
-void Clamp_S32_opaque_D32_nofilter_DX_shaderproc(const void* sIn, int x, int y, |
+void Clamp_S32_opaque_D32_nofilter_DX_shaderproc(const SkBitmapProcState& s, int x, int y, |
SkPMColor* SK_RESTRICT dst, int count) { |
- const SkBitmapProcState& s = *static_cast<const SkBitmapProcState*>(sIn); |
SkASSERT((s.fInvType & ~(SkMatrix::kTranslate_Mask | |
SkMatrix::kScale_Mask)) == 0); |