Differential D22184 Diff 64134 www/qt5-webengine/files/patch-src_3rdparty_chromium_ui_gfx_codec_png__codec__unittest.cc
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_ui_gfx_codec_png__codec__unittest.cc
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/3rdparty/chromium/ui/gfx/codec/png_codec_unittest.cc.orig 2019-05-23 12:39:34 UTC | |||||
+++ src/3rdparty/chromium/ui/gfx/codec/png_codec_unittest.cc | |||||
@@ -853,7 +853,7 @@ TEST(PNGCodec, EncodeA8SkBitmap) { | |||||
for (int y = 0; y < h; y++) { | |||||
uint8_t original_pixel = *original_bitmap.getAddr8(x, y); | |||||
uint32_t decoded_pixel = *decoded_bitmap.getAddr32(x, y); | |||||
- EXPECT_TRUE(BGRAGrayEqualsA8Gray(decoded_pixel, original_pixel)); | |||||
+ EXPECT_TRUE(BGRAGrayEqualsA8Gray(SkUnPreMultiply::PMColorToColor(decoded_pixel), original_pixel)); | |||||
} | |||||
} | |||||
} |