Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: ui/gfx/codec/png_codec_unittest.cc

Issue 2944633002: Use SkPngEncoder in gfx jpeg_codec (Closed)
Patch Set: All Changed Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gfx/codec/png_codec_unittest.cc
diff --git a/ui/gfx/codec/png_codec_unittest.cc b/ui/gfx/codec/png_codec_unittest.cc
index faf665d670847e0536356aa51e075322ad6462f0..e5445a38d0cf73830a4fa11578887406b374e2ff 100644
--- a/ui/gfx/codec/png_codec_unittest.cc
+++ b/ui/gfx/codec/png_codec_unittest.cc
@@ -286,9 +286,8 @@ TEST(PNGCodec, EncodeDecodeRGBA) {
// encode
std::vector<unsigned char> encoded;
- ASSERT_TRUE(PNGCodec::Encode(&original[0], PNGCodec::FORMAT_RGBA,
- Size(w, h), w * 4, false,
- std::vector<PNGCodec::Comment>(),
+ ASSERT_TRUE(PNGCodec::Encode(&original[0], PNGCodec::FORMAT_RGBA, Size(w, h),
msarett1 2017/06/23 22:50:32 Why is this file changed?
liyuqian 2017/07/05 15:59:40 I've reverted the change. I think it's because tha
+ w * 4, false, std::vector<PNGCodec::Comment>(),
&encoded));
// decode, it should have the same size as the original
@@ -315,9 +314,8 @@ TEST(PNGCodec, EncodeDecodeBGRA) {
// Encode.
std::vector<unsigned char> encoded;
- ASSERT_TRUE(PNGCodec::Encode(&original[0], PNGCodec::FORMAT_BGRA,
- Size(w, h), w * 4, false,
- std::vector<PNGCodec::Comment>(),
+ ASSERT_TRUE(PNGCodec::Encode(&original[0], PNGCodec::FORMAT_BGRA, Size(w, h),
+ w * 4, false, std::vector<PNGCodec::Comment>(),
&encoded));
// Decode, it should have the same size as the original.

Powered by Google App Engine
This is Rietveld 408576698