diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-20 20:55:37 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-20 20:55:37 +0000 |
commit | 900ecf2f1579d42c9d2959831787af0346320f86 (patch) | |
tree | 243e1157f2675f3e62b61505e0929ade2a05da93 /include | |
parent | 0a2bf90dccba3bde188e0386a7f0c60e6dde1ae9 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkImageInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
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; } |