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

Issue 10496016: Add RGBX BGRX support to WEBPImportPicture (Closed)

Created:
8 years, 6 months ago by Noel Gordon
Modified:
8 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

When importing BGRA or RGBA data for encoding, provide variants of the WEBPImportPicture API for RGBX and BRGX data meaning the alpha channel should be ignored. Note: the existing WEBPImportPictureRGBA|BGRA routines also ignore the alpha channel, but won't in a future version of libwebp. Thus, if WebKit continues using the existing routines, the alpha channel will be imported and encoded in libwebp.next, and hence will break canvas.toDataURL("image/webp") and its layout tests. BUG=130144 TEST=Webkit test pass when using the new functions. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140264

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix comment nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -2 lines) Patch
M third_party/libwebp/README.chromium View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/libwebp/enc/picture.c View 1 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/libwebp/webp/encode.h View 1 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Noel Gordon
8 years, 6 months ago (2012-06-04 01:30:50 UTC) #1
skal
https://chromiumcodereview.appspot.com/10496016/diff/1/third_party/libwebp/enc/picture.c File third_party/libwebp/enc/picture.c (right): https://chromiumcodereview.appspot.com/10496016/diff/1/third_party/libwebp/enc/picture.c#newcode598 third_party/libwebp/enc/picture.c:598: // In libwebp.next, assert picture->user_argb_input here. not necessarily. What ...
8 years, 6 months ago (2012-06-04 04:34:55 UTC) #2
Noel Gordon
On 2012/06/04 04:34:55, skal wrote: > https://chromiumcodereview.appspot.com/10496016/diff/1/third_party/libwebp/enc/picture.c > File third_party/libwebp/enc/picture.c (right): > > https://chromiumcodereview.appspot.com/10496016/diff/1/third_party/libwebp/enc/picture.c#newcode598 > ...
8 years, 6 months ago (2012-06-04 05:17:37 UTC) #3
Noel Gordon
8 years, 6 months ago (2012-06-04 06:11:18 UTC) #4
skal
lgtm LGTM
8 years, 6 months ago (2012-06-04 06:33:15 UTC) #5
Hironori Bono
LGTM2. Regards, Hironori Bono
8 years, 6 months ago (2012-06-04 06:45:30 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noel@chromium.org/10496016/7001
8 years, 6 months ago (2012-06-04 06:45:51 UTC) #7
commit-bot: I haz the power
8 years, 6 months ago (2012-06-04 08:09:23 UTC) #8
Change committed as 140264

Powered by Google App Engine
This is Rietveld 408576698