Generate ICC profiles with version 4.3 (not 2.1)
We've been making profiles tagged as version 2.1, but using features
that aren't allowed until 4+. Nearly all software doesn't care (most
ICC parsers are lenient about this), but Windows 7 Photo Viewer does
not like this. The latest ICC spec is 4.3 (ca 2001), so use that.
Bug: skia:12491
Change-Id: I7867ed73894ce3b55a61f4b7e5de29269c7c0dca
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/456256
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/core/SkICC.cpp b/src/core/SkICC.cpp
index dbf9ee6..1f92424 100644
--- a/src/core/SkICC.cpp
+++ b/src/core/SkICC.cpp
@@ -96,7 +96,7 @@
static constexpr uint32_t kICCHeader[kICCHeaderSize / 4] {
SkEndian_SwapBE32(kICCProfileSize), // Size of the profile
0, // Preferred CMM type (ignored)
- SkEndian_SwapBE32(0x02100000), // Version 2.1
+ SkEndian_SwapBE32(0x04300000), // Version 4.3
SkEndian_SwapBE32(kDisplay_Profile), // Display device profile
SkEndian_SwapBE32(kRGB_ColorSpace), // RGB input color space
SkEndian_SwapBE32(kXYZ_PCSSpace), // XYZ profile connection space