Index: src/core/SkImageInfo.cpp |
diff --git a/src/core/SkImageInfo.cpp b/src/core/SkImageInfo.cpp |
index 81a68f3de3715f0400e1862e133df68d4cb7016c..7a2558ebd3f992ea0c34a1523cc2eeb33cf37231 100644 |
--- a/src/core/SkImageInfo.cpp |
+++ b/src/core/SkImageInfo.cpp |
@@ -35,6 +35,11 @@ SkImageInfo SkImageInfo::Make(int width, int height, SkColorType ct, SkAlphaType |
return SkImageInfo(width, height, ct, at, SkDefaultColorProfile(), std::move(cs)); |
} |
+SkImageInfo SkImageInfo::MakeS32(int width, int height, SkAlphaType at) { |
+ return SkImageInfo(width, height, kN32_SkColorType, at, kSRGB_SkColorProfileType, |
+ SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named)); |
+} |
+ |
void SkImageInfo::unflatten(SkReadBuffer& buffer) { |
fWidth = buffer.read32(); |
fHeight = buffer.read32(); |