Index: src/core/SkMipMap.cpp |
diff --git a/src/core/SkMipMap.cpp b/src/core/SkMipMap.cpp |
index 69c8466f69c30073fe0ace194254ef2215575959..b9302cdb6841bab2fcf3de8b646311dd0f87632f 100644 |
--- a/src/core/SkMipMap.cpp |
+++ b/src/core/SkMipMap.cpp |
@@ -306,7 +306,7 @@ size_t SkMipMap::AllocLevelsSize(int levelCount, size_t pixelSize) { |
static bool treat_like_srgb(const SkImageInfo& info) { |
if (info.colorSpace()) { |
- return SkColorSpace::k2Dot2Curve_GammaNamed == info.colorSpace()->gammaNamed(); |
+ return info.colorSpace()->gammaCloseToSRGB(); |
} else { |
return kSRGB_SkColorProfileType == info.profileType(); |
} |