aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Matt Sarett <msarett@google.com>2017-04-05 16:52:00 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-05 21:33:14 +0000
commit0c9d0b4e03b6c10778329e995b5dfdcb97954b28 (patch)
tree43391c6ceaa97fe9574530642b943d6ee20418c0 /tests
parent7125ac603613d156d83a528f27b03e04282a1e37 (diff)
Add support for writing ICC profiles to webp encoder
Bug: skia: Change-Id: If0a8f84ed88da96924370b841f2283c0ff8e32ab Reviewed-on: https://skia-review.googlesource.com/10212 Commit-Queue: Matt Sarett <msarett@google.com> Reviewed-by: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/CodecTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CodecTest.cpp b/tests/CodecTest.cpp
index f3a393d7ac..3897878879 100644
--- a/tests/CodecTest.cpp
+++ b/tests/CodecTest.cpp
@@ -1538,6 +1538,9 @@ static void encode_format(SkDynamicMemoryWStream* stream, const SkPixmap& pixmap
case SkEncodedImageFormat::kJPEG:
SkEncodeImageAsJPEG(stream, pixmap, opts);
break;
+ case SkEncodedImageFormat::kWEBP:
+ SkEncodeImageAsWEBP(stream, pixmap, opts);
+ break;
default:
SkASSERT(false);
break;
@@ -1586,4 +1589,5 @@ static void test_encode_icc(skiatest::Reporter* r, SkEncodedImageFormat format)
DEF_TEST(Codec_EncodeICC, r) {
test_encode_icc(r, SkEncodedImageFormat::kPNG);
test_encode_icc(r, SkEncodedImageFormat::kJPEG);
+ test_encode_icc(r, SkEncodedImageFormat::kWEBP);
}