Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index ce786bfe8afebdb80f2016456a9d65d61d6d76dd..8a2d3853977fb9d5f0823a63e264c47903f0354f 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -1826,12 +1826,12 @@ bool SkCanvas::isClipRect() const { |
} |
static inline bool is_nan_or_clipped(const Sk4f& devRect, const Sk4f& devClip) { |
-#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 |
+#if !defined(SKNX_NO_SIMD) && SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 |
__m128 lLtT = _mm_unpacklo_ps(devRect.fVec, devClip.fVec); |
__m128 RrBb = _mm_unpackhi_ps(devClip.fVec, devRect.fVec); |
__m128 mask = _mm_cmplt_ps(lLtT, RrBb); |
return 0xF != _mm_movemask_ps(mask); |
-#elif defined(SK_ARM_HAS_NEON) |
+#elif !defined(SKNX_NO_SIMD) && defined(SK_ARM_HAS_NEON) |
float32x4_t lLtT = vzipq_f32(devRect.fVec, devClip.fVec).val[0]; |
float32x4_t RrBb = vzipq_f32(devClip.fVec, devRect.fVec).val[1]; |
uint32x4_t mask = vcltq_f32(lLtT, RrBb); |
@@ -2516,7 +2516,7 @@ void SkCanvas::onDrawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, cons |
iter.fDevice->drawBitmap(iter, bitmap, matrix, looper.paint()); |
} |
} |
- |
+ |
LOOPER_END |
} |