Index: src/core/SkCpu.h |
diff --git a/src/core/SkCpu.h b/src/core/SkCpu.h |
index 219ec698458b94b09a6d1d5a01c472a993962b7e..4fba1d4afed43827d791df2154c3ab05e5977554 100644 |
--- a/src/core/SkCpu.h |
+++ b/src/core/SkCpu.h |
@@ -27,6 +27,7 @@ struct SkCpu { |
NEON = 1 << 0, |
NEON_FMA = 1 << 1, |
VFP_FP16 = 1 << 2, |
+ CRC32 = 1 << 3, |
}; |
static void CacheRuntimeFeatures(); |
@@ -79,6 +80,10 @@ inline bool SkCpu::Supports(uint32_t mask) { |
features |= NEON|NEON_FMA|VFP_FP16; |
#endif |
+ #if defined(__ARM_FEATURE_CRC32) |
+ features |= CRC32; |
+ #endif |
+ |
#endif |
return (features & mask) == mask; |
} |