WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 86040
84682
[chromium-android] Dump Image in RGBA order with a checksum.
https://bugs.webkit.org/show_bug.cgi?id=84682
Summary
[chromium-android] Dump Image in RGBA order with a checksum.
Johnny(Jianning) Ding
Reported
2012-04-24 01:42:26 PDT
On Chromium Android, pixel layout encoding is RGBA, however, other Chrome platforms use BGRA. We need to correctly dump the image with RGBA encoding and reorder the layout of pixels to calculate the checksum in order to match the checksum of other Chrome platforms.
Attachments
patch v1
(3.80 KB, patch)
2012-04-24 09:25 PDT
,
Johnny(Jianning) Ding
tkent
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Johnny(Jianning) Ding
Comment 1
2012-04-24 09:25:43 PDT
Created
attachment 138576
[details]
patch v1
Kent Tamura
Comment 2
2012-04-24 17:59:16 PDT
Comment on
attachment 138576
[details]
patch v1 View in context:
https://bugs.webkit.org/attachment.cgi?id=138576&action=review
This change is acceptable. However - introduce webkit_support::EncodeRGBAPNGWithChecksum(), and - Make re-ordered bytes on the fly and pour it to MD5 digester would be better for performance.
> Tools/DumpRenderTree/chromium/TestShell.cpp:674 > + WTF::MD5 digester; > + WTF::Vector<uint8_t, 16> digestValue;
You don't need to add WTF::.
> Tools/DumpRenderTree/chromium/TestShell.cpp:685 > + WTF::Vector<SkPMColor> pixelsInBGRAOrder;
ditto.
> Tools/DumpRenderTree/chromium/TestShell.cpp:688 > + SkPMColor* srcRow = reinterpret_cast<SkPMColor*>(sourceBitmap.getAddr32(0, y));
nit: The variable name should be sourceRow for consistency.
Adam Barth
Comment 3
2012-05-09 17:30:24 PDT
*** This bug has been marked as a duplicate of
bug 86040
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug