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

Issue 10831031: Fix the PNCodec error on Android caused by different Skia color format. (Closed)

Created:
8 years, 5 months ago by Shouqun Liu
Modified:
8 years, 4 months ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix the PNCodec error on Android caused by different Skia color format. Make sure the test case to compare SkPMColor between SkPMColor, rather than SkColor. BUG=138933 TEST=ui_unittests --gtest_filter=PNGCodec.EncodeBGRASkBitmapDiscardTransparency Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149208

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Fix the test case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -5 lines) Patch
M build/android/gtest_filter/ui_unittests_disabled View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/codec/png_codec_unittest.cc View 1 2 3 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Shouqun Liu
Hi, this patch fixes a PNGCodec failed case on Android (Bug 138933), the failure is ...
8 years, 5 months ago (2012-07-26 07:58:25 UTC) #1
tony
Are the other uses of SkColorGet{R,G,B} in the code incorrect? http://codereview.chromium.org/10831031/diff/1/ui/gfx/codec/png_codec.cc File ui/gfx/codec/png_codec.cc (right): http://codereview.chromium.org/10831031/diff/1/ui/gfx/codec/png_codec.cc#newcode69 ...
8 years, 5 months ago (2012-07-26 17:38:21 UTC) #2
tony
Also, seems like http://codereview.chromium.org/10823012/ is related.
8 years, 5 months ago (2012-07-26 18:30:14 UTC) #3
Shouqun Liu
Hi tony, I think for chromium on other platforms, it's correct, but for chromium on ...
8 years, 4 months ago (2012-07-27 00:31:48 UTC) #4
Shouqun Liu
yes, similar color format issue on android but different solution, this patch fixes the PNGCodec ...
8 years, 4 months ago (2012-07-27 00:40:03 UTC) #5
tony
LGTM, but I don't know much about skia. Adding a couple skia folks to weigh ...
8 years, 4 months ago (2012-07-27 16:56:58 UTC) #6
Yaron
Removing myself as reviewer. I don't have familiarity with this stuff; it's much better in ...
8 years, 4 months ago (2012-07-27 17:04:19 UTC) #7
reed1
Why the change to the pixel unpacking? The output of the unpremultiply call is definitely ...
8 years, 4 months ago (2012-07-27 17:45:13 UTC) #8
Shouqun Liu
Thanks, reed, the reason I change SkColor to SkGetPackedR32 is that on Android, the color ...
8 years, 4 months ago (2012-07-28 02:09:12 UTC) #9
reed1
I still cannot see how this is correct, esp. given that ConvertSkiaToRGBA, which seems to ...
8 years, 4 months ago (2012-07-30 12:52:56 UTC) #10
Shouqun Liu
Thanks for your explanation, the test EncodeBGRASkBitmapDiscardTransparency works as follow: (1), MakeTestSkBitmap to generate a ...
8 years, 4 months ago (2012-07-30 14:08:12 UTC) #11
reed1
I think the real bug is in the test, not in the codec. This is ...
8 years, 4 months ago (2012-07-30 20:02:50 UTC) #12
Shouqun Liu
yes, agree with you that the case is error, update the patch to compare unpremultiplied ...
8 years, 4 months ago (2012-07-31 06:59:35 UTC) #13
reed1
lgtm
8 years, 4 months ago (2012-07-31 13:09:49 UTC) #14
Shouqun Liu
On 2012/07/31 13:09:49, reed1 wrote: > lgtm thanks!
8 years, 4 months ago (2012-07-31 14:07:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shouqun.liu@intel.com/10831031/11004
8 years, 4 months ago (2012-07-31 14:08:15 UTC) #16
commit-bot: I haz the power
Presubmit check for 10831031-11004 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-07-31 14:08:18 UTC) #17
Shouqun Liu
add asvitkine@ as the ui/gfx OWNER, thank!
8 years, 4 months ago (2012-07-31 15:22:29 UTC) #18
sky
LGTM
8 years, 4 months ago (2012-07-31 15:32:29 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shouqun.liu@intel.com/10831031/11004
8 years, 4 months ago (2012-07-31 15:46:26 UTC) #20
commit-bot: I haz the power
8 years, 4 months ago (2012-07-31 17:02:18 UTC) #21
Change committed as 149208

Powered by Google App Engine
This is Rietveld 408576698