Index: src/core/SkEndian.h |
diff --git a/src/core/SkEndian.h b/src/core/SkEndian.h |
index 954afb046d913aac5d07982a73e292d3003e0ef0..39e5dd8fb4372689a3338913d284d977c64c2e5d 100644 |
--- a/src/core/SkEndian.h |
+++ b/src/core/SkEndian.h |
@@ -50,7 +50,7 @@ static inline void SkEndianSwap16s(uint16_t array[], int count) { |
/** Reverse all 4 bytes in a 32bit value. |
e.g. 0x12345678 -> 0x78563412 |
*/ |
-static inline uint32_t SkEndianSwap32(uint32_t value) { |
+static constexpr uint32_t SkEndianSwap32(uint32_t value) { |
return ((value & 0xFF) << 24) | |
((value & 0xFF00) << 8) | |
((value & 0xFF0000) >> 8) | |