Bug 88218

Summary: [chromium] Use WEBPImportPictureRGBX|BGRX to import picture data
Product: WebKit Reporter: noel gordon <noel.gordon>
Component: New BugsAssignee: noel gordon <noel.gordon>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, ojan, pascal.massimino, rakuco, tkent, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch for landing none

noel gordon
Reported 2012-06-04 01:51:34 PDT
Part of a two-sided patch: https://chromiumcodereview.appspot.com/10496016 defines WEBPImportPictureRGBX|BGRX for importing picture data ignoring the alpha channel. WebKit should use these methods to import data for encoding when creating a image/webp dataURL. The methods WebKit currently uses, namely WEBPImportPictureRGBA|BGRA, will include the alpha channel during import in a future release of libwebp so we should stop using these methods to future-proof the code.
Attachments
Patch (23.22 KB, patch)
2012-06-04 02:24 PDT, noel gordon
no flags
Patch (22.83 KB, patch)
2012-06-05 19:52 PDT, noel gordon
no flags
Patch (21.05 KB, patch)
2012-06-07 08:23 PDT, noel gordon
no flags
Patch for landing (21.07 KB, patch)
2012-06-07 17:53 PDT, noel gordon
no flags
noel gordon
Comment 1 2012-06-04 02:24:52 PDT
noel gordon
Comment 2 2012-06-04 02:30:33 PDT
Pascal Massimino
Comment 3 2012-06-04 05:50:55 PDT
lgtm, but one need to wait for the new functions to be in the official libwebp tree (release 0.1.4?) before using them... btw: there's a missing checksum reported for the second PNG
noel gordon
Comment 4 2012-06-05 01:18:00 PDT
(In reply to comment #3) > lgtm, but one need to wait for the new functions to be in the official libwebp tree (release 0.1.4?) before using them... Actually, I just need chromium DEPS to rev 140264 to use the functions since they are in the chromium repository. > btw: there's a missing checksum reported for the second PNG I generated the png result with run-webkit-tests, that should create a checksum, and the error report says "create the png with run-webkit-tests" :) Dunno what's going on there.
noel gordon
Comment 5 2012-06-05 01:29:26 PDT
noel gordon
Comment 6 2012-06-05 19:52:24 PDT
noel gordon
Comment 7 2012-06-05 20:38:42 PDT
Since the linux EWS are backed up, built chromium-linux and ran the new test. Works fines.
Kent Tamura
Comment 8 2012-06-05 23:35:45 PDT
Comment on attachment 145918 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=145918&action=review > LayoutTests/ChangeLog:13 > + * fast/canvas/canvas-toDataURL-webp-no-alpha-expected.txt: Added. > + * fast/canvas/canvas-toDataURL-webp-no-alpha.html: Added. Can you make this a reftest?
noel gordon
Comment 9 2012-06-05 23:56:58 PDT
Maybe, prefer to see the composite onto black pixels here.
noel gordon
Comment 10 2012-06-07 08:20:04 PDT
Discussed the existing test fast/canvas/canvas-toDataURL-webp.html with tkent, and we agree to replace it with the new test.
noel gordon
Comment 11 2012-06-07 08:23:59 PDT
Kent Tamura
Comment 12 2012-06-07 16:47:39 PDT
Comment on attachment 146291 [details] Patch ok
WebKit Review Bot
Comment 13 2012-06-07 17:38:35 PDT
Comment on attachment 146291 [details] Patch Rejecting attachment 146291 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1 ERROR: /mnt/git/webkit-commit-queue/LayoutTests/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive). Full output: http://queues.webkit.org/results/12908507
noel gordon
Comment 14 2012-06-07 17:53:55 PDT
Created attachment 146437 [details] Patch for landing
WebKit Review Bot
Comment 15 2012-06-07 19:57:46 PDT
Comment on attachment 146437 [details] Patch for landing Clearing flags on attachment: 146437 Committed r119787: <http://trac.webkit.org/changeset/119787>
WebKit Review Bot
Comment 16 2012-06-07 19:58:01 PDT
All reviewed patches have been landed. Closing bug.
noel gordon
Comment 17 2012-06-07 21:14:50 PDT
(In reply to comment #4) > > > btw: there's a missing checksum reported for the second PNG > > I generated the png result with run-webkit-tests, that should create a checksum, and the error report says "create the png with run-webkit-tests" :) > > Dunno what's going on there. Bug 88368.
noel gordon
Comment 18 2012-06-07 23:24:32 PDT
Ojan Vafai
Comment 19 2012-06-08 00:00:41 PDT
FYI, as per garden-o-matic, the MISSING line in TestExpectations needs to include Lion and you need a line for the equivalent virtual gpu test platform/chromium/virtual/gpu/fast/canvas/canvas-toDataURL-webp.html. http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=fast%2Fcanvas%2Fcanvas-toDataURL-webp.html
noel gordon
Comment 20 2012-06-08 00:24:01 PDT
noel gordon
Comment 21 2012-06-08 01:36:37 PDT
(In reply to comment #19) > FYI, as per garden-o-matic, the MISSING line in TestExpectations needs to include Lion Want lion: so optimize http://trac.webkit.org/changeset/119812
Note You need to log in before you can comment on or make changes to this bug.