Index: src/core/SkBitmapProcState.cpp |
diff --git a/src/core/SkBitmapProcState.cpp b/src/core/SkBitmapProcState.cpp |
index d18dfb5d0f5439101260c77bc452395b2f0c63db..b1438cb8a0400fadbddcaed31cadb70e0fe21966 100644 |
--- a/src/core/SkBitmapProcState.cpp |
+++ b/src/core/SkBitmapProcState.cpp |
@@ -21,7 +21,6 @@ |
#if !SK_ARM_NEON_IS_NONE |
// These are defined in src/opts/SkBitmapProcState_arm_neon.cpp |
-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); |
@@ -193,7 +192,6 @@ bool SkBitmapProcState::chooseProcs(const SkMatrix& inv, const SkPaint& paint) { |
fShaderProc32 = nullptr; |
fShaderProc16 = nullptr; |
fSampleProc32 = nullptr; |
- fSampleProc16 = nullptr; |
// recompute the triviality of the matrix here because we may have |
// changed it! |
@@ -336,45 +334,13 @@ bool SkBitmapProcState::chooseScanlineProcs(bool trivialMatrix, bool clampClamp, |
SG8_alpha_D32_filter_DX, |
SG8_alpha_D32_filter_DX |
}; |
- |
- static const SampleProc16 gSkBitmapProcStateSample16[] = { |
- S32_D16_nofilter_DXDY, |
- S32_D16_nofilter_DX, |
- S32_D16_filter_DXDY, |
- S32_D16_filter_DX, |
- |
- S16_D16_nofilter_DXDY, |
- S16_D16_nofilter_DX, |
- S16_D16_filter_DXDY, |
- S16_D16_filter_DX, |
- |
- SI8_D16_nofilter_DXDY, |
- SI8_D16_nofilter_DX, |
- SI8_D16_filter_DXDY, |
- SI8_D16_filter_DX, |
- |
- // Don't support 4444 -> 565 |
- nullptr, nullptr, nullptr, nullptr, |
- // Don't support A8 -> 565 |
- nullptr, nullptr, nullptr, nullptr, |
- // Don't support G8 -> 565 (but we could) |
- nullptr, nullptr, nullptr, nullptr |
- }; |
#endif |
fSampleProc32 = SK_ARM_NEON_WRAP(gSkBitmapProcStateSample32)[index]; |
index >>= 1; // shift away any opaque/alpha distinction |
- fSampleProc16 = SK_ARM_NEON_WRAP(gSkBitmapProcStateSample16)[index]; |
// our special-case shaderprocs |
- if (SK_ARM_NEON_WRAP(S16_D16_filter_DX) == fSampleProc16) { |
- if (clampClamp) { |
- fShaderProc16 = SK_ARM_NEON_WRAP(Clamp_S16_D16_filter_DX_shaderproc); |
- } else if (SkShader::kRepeat_TileMode == fTileModeX && |
- SkShader::kRepeat_TileMode == fTileModeY) { |
- fShaderProc16 = SK_ARM_NEON_WRAP(Repeat_S16_D16_filter_DX_shaderproc); |
- } |
- } else if (SK_ARM_NEON_WRAP(SI8_opaque_D32_filter_DX) == fSampleProc32 && clampClamp) { |
+ if (SK_ARM_NEON_WRAP(SI8_opaque_D32_filter_DX) == fSampleProc32 && clampClamp) { |
fShaderProc32 = SK_ARM_NEON_WRAP(Clamp_SI8_opaque_D32_filter_DX_shaderproc); |
} else if (S32_opaque_D32_nofilter_DX == fSampleProc32 && clampClamp) { |
fShaderProc32 = Clamp_S32_opaque_D32_nofilter_DX_shaderproc; |