Index: src/core/SkImageInfo.cpp |
diff --git a/src/core/SkImageInfo.cpp b/src/core/SkImageInfo.cpp |
index 5f0a4919eeeddaa23fa3a535a5d8e2064fc88a4a..81a68f3de3715f0400e1862e133df68d4cb7016c 100644 |
--- a/src/core/SkImageInfo.cpp |
+++ b/src/core/SkImageInfo.cpp |
@@ -30,6 +30,11 @@ static bool color_type_is_valid(SkColorType colorType) { |
return (colorType >= 0) && (colorType <= kLastEnum_SkColorType); |
} |
+SkImageInfo SkImageInfo::Make(int width, int height, SkColorType ct, SkAlphaType at, |
+ sk_sp<SkColorSpace> cs) { |
+ return SkImageInfo(width, height, ct, at, SkDefaultColorProfile(), std::move(cs)); |
+} |
+ |
void SkImageInfo::unflatten(SkReadBuffer& buffer) { |
fWidth = buffer.read32(); |
fHeight = buffer.read32(); |