Index: include/core/SkImageInfo.h |
diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h |
index d66158d02c56506cd4b72f8286aea0be8a2678cc..b955433329579d6907da98a085e8b72759818fdf 100644 |
--- a/include/core/SkImageInfo.h |
+++ b/include/core/SkImageInfo.h |
@@ -176,6 +176,13 @@ struct SkImageInfo { |
return info; |
} |
+ static SkImageInfo MakeUnknown() { |
+ SkImageInfo info = { |
+ 0, 0, kUnknown_SkColorType, kIgnore_SkAlphaType |
+ }; |
+ return info; |
+ } |
+ |
int width() const { return fWidth; } |
int height() const { return fHeight; } |
SkColorType colorType() const { return fColorType; } |