diff options
author | 2017-05-19 19:12:54 -0400 | |
---|---|---|
committer | 2017-05-19 23:35:46 +0000 | |
commit | 2f687877835b60497a48537b940cd634088eedf4 (patch) | |
tree | 6dea16905f2bdfbf79a2b34bdcb75215759201fd /tests | |
parent | 45d71a5c75cefec2f44b2013b30ff53eab923160 (diff) |
SkWebpEncoder: use bgra for lossless and yuv for lossy
Previosuly, we would (accidentally) always use just yuv.
Bug: 713862
Change-Id: I00acc6ca2841ba0636494119b7b4f46a9deee401
Reviewed-on: https://skia-review.googlesource.com/17406
Commit-Queue: Matt Sarett <msarett@google.com>
Reviewed-by: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/EncodeTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/EncodeTest.cpp b/tests/EncodeTest.cpp index 102b4cd3a6..4d0ade1ac5 100644 --- a/tests/EncodeTest.cpp +++ b/tests/EncodeTest.cpp @@ -255,6 +255,6 @@ DEF_TEST(Encode_WebpOptions, r) { SkImage::MakeFromEncoded(data2)->asLegacyBitmap(&bm2, SkImage::kRO_LegacyBitmapMode); SkImage::MakeFromEncoded(data3)->asLegacyBitmap(&bm3, SkImage::kRO_LegacyBitmapMode); REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); - REPORTER_ASSERT(r, almost_equals(bm0, bm2, 6)); + REPORTER_ASSERT(r, almost_equals(bm0, bm2, 90)); REPORTER_ASSERT(r, almost_equals(bm2, bm3, 45)); } |