Write ICC profiles from SkColorSpace object

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2001203003

Review-Url: https://codereview.chromium.org/2001203003
diff --git a/src/core/SkEndian.h b/src/core/SkEndian.h
index 954afb0..39e5dd8 100644
--- a/src/core/SkEndian.h
+++ b/src/core/SkEndian.h
@@ -50,7 +50,7 @@
 /** 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) |