From 900ecf2f1579d42c9d2959831787af0346320f86 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Thu, 20 Feb 2014 20:55:37 +0000 Subject: use colortype instead of config patch from issue 172063004 BUG=skia: R=scroggo@google.com Review URL: https://codereview.chromium.org/173893002 git-svn-id: http://skia.googlecode.com/svn/trunk@13520 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkImageInfo.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h index 2b449dc213..1c73d959af 100644 --- a/include/core/SkImageInfo.h +++ b/include/core/SkImageInfo.h @@ -165,6 +165,13 @@ struct SkImageInfo { return info; } + static SkImageInfo MakeUnknown(int width, int height) { + SkImageInfo info = { + width, height, kUnknown_SkColorType, kIgnore_SkAlphaType + }; + return info; + } + int width() const { return fWidth; } int height() const { return fHeight; } SkColorType colorType() const { return fColorType; } -- cgit v1.2.3