aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/CodecTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/CodecTest.cpp')
-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);
}