diff options
author | Mike Klein <mtklein@chromium.org> | 2017-07-24 10:15:10 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-24 15:57:29 +0000 |
commit | fd51b2ba45199516abe2a968f5ac5b278d35c6e6 (patch) | |
tree | b8f699c29950fdcc11f832a89cf505a5831a4c26 /tools | |
parent | 97d6a7af8020ab76d6fcbbdc4a7f0beec556f4b7 (diff) |
add suggested decode color type to colorspaceinfo
E.g.
~/skia (decode-as|✚1…) $ ninja -C out/ colorspaceinfo; and out/colorspaceinfo --input ~/Downloads/prophoto.png
ninja: Entering directory `out/'
[2/2] link colorspaceinfo
SkCodec would naturally decode as colorType=RGBA_8888
Color Profile Description:
"Google/Skia/215028B4833C240E0583AFE600C80A79"
...
Change-Id: Id36efadaa84e9ffa5d67153e074be8a8426b6c42
Reviewed-on: https://skia-review.googlesource.com/26140
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/colorspaceinfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/colorspaceinfo.cpp b/tools/colorspaceinfo.cpp index 0542d88f32..ec1101946c 100644 --- a/tools/colorspaceinfo.cpp +++ b/tools/colorspaceinfo.cpp @@ -465,6 +465,8 @@ int main(int argc, char** argv) { } else { codec.reset(SkCodec::NewFromData(data)); colorSpace = sk_ref_sp(codec->getInfo().colorSpace()); + SkDebugf("SkCodec would naturally decode as colorType=%s\n", + sk_tool_utils::colortype_name(codec->getInfo().colorType())); } if (!colorSpace) { |