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

Issue 14267031: ARGB image encoder for checksums. (Closed)

Created:
7 years, 8 months ago by bungeman-skia
Modified:
7 years, 8 months ago
Reviewers:
epoger, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

ARGB image encoder for checksums.

Patch Set 1 #

Patch Set 2 : Write to the stream one scanline at a time. #

Patch Set 3 : Fix memory leak, clean up includes. #

Total comments: 13

Patch Set 4 : Address comments, add some timing bits. #

Total comments: 8

Patch Set 5 : Something which can actually be checked in. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -404 lines) Patch
M gyp/images.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gyp/tests.gyp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M gyp/utils.gyp View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M include/images/SkImageEncoder.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
A src/images/SkImageEncoder_argb.cpp View 1 2 1 chunk +119 lines, -0 lines 0 comments Download
M src/utils/SkBitmapHasher.h View 1 2 3 4 2 chunks +1 line, -4 lines 0 comments Download
M src/utils/SkBitmapHasher.cpp View 1 2 3 4 2 chunks +21 lines, -30 lines 0 comments Download
D src/utils/SkBitmapTransformer.h View 1 2 3 4 1 chunk +0 lines, -104 lines 0 comments Download
D src/utils/SkBitmapTransformer.cpp View 1 2 3 4 1 chunk +0 lines, -87 lines 0 comments Download
M src/utils/SkMD5.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/utils/SkSHA1.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + tests/ARGBImageEncoderTest.cpp View 1 2 3 4 2 chunks +58 lines, -77 lines 0 comments Download
M tests/BitmapTransformerTest.cpp View 1 2 3 4 1 chunk +0 lines, -97 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
bungeman-skia
This is was I would like to see against current so that calculating the checksums ...
7 years, 8 months ago (2013-04-19 19:56:01 UTC) #1
epoger
LGTM with some relatively small suggestions... Thanks for taking the trouble... I'm not sure how ...
7 years, 8 months ago (2013-04-19 21:13:02 UTC) #2
bungeman-skia
I was interested in the performance of the digests, so added some temporary changes here ...
7 years, 8 months ago (2013-04-22 18:31:13 UTC) #3
epoger
LGTM, sort of. As detailed below, I believe this is significantly less efficient than the ...
7 years, 8 months ago (2013-04-22 19:53:28 UTC) #4
epoger
On 2013/04/22 18:31:13, bungeman1 wrote: > One other thing I noticed is that aside from ...
7 years, 8 months ago (2013-04-22 19:55:58 UTC) #5
bungeman-skia
https://codereview.chromium.org/14267031/diff/11001/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.chromium.org/14267031/diff/11001/gm/gmmain.cpp#newcode1594 gm/gmmain.cpp:1594: #include "SkTime.h" On 2013/04/22 19:53:28, epoger wrote: > You're ...
7 years, 8 months ago (2013-04-22 20:08:00 UTC) #6
epoger
Like I wrote yesterday, I recommend committing this CL as-is and seeing if it degrades ...
7 years, 8 months ago (2013-04-23 15:01:41 UTC) #7
epoger
On 2013/04/23 15:01:41, epoger wrote: > Like I wrote yesterday, I recommend committing this CL ...
7 years, 8 months ago (2013-04-23 16:57:59 UTC) #8
bungeman-skia
> Ben, do you intend to commit this soon? As noted in > https://codereview.chromium.org/14265010/ ('Make ...
7 years, 8 months ago (2013-04-23 17:27:19 UTC) #9
epoger
On 2013/04/23 17:27:19, bungeman1 wrote: > > Ben, do you intend to commit this soon? ...
7 years, 8 months ago (2013-04-23 18:04:32 UTC) #10
epoger
Looks like this was committed as https://code.google.com/p/skia/source/detail?r=8831 . I dunno why that didn't show up ...
7 years, 8 months ago (2013-04-23 19:05:57 UTC) #11
bungeman-skia
Committed revision 8831.
7 years, 8 months ago (2013-04-23 19:17:08 UTC) #12
epoger
On 2013/04/23 15:01:41, epoger wrote: > Like I wrote yesterday, I recommend committing this CL ...
7 years, 8 months ago (2013-04-23 19:32:22 UTC) #13
epoger
7 years, 8 months ago (2013-04-24 16:30:43 UTC) #14
Message was sent while issue was closed.
On 2013/04/23 19:32:22, epoger wrote:
> So far this change is looking good, performance-wise! Looking at how long it
> took to run the GenerateGMs step, in min:sec ...

Just to add results from the Skia_NexusS_4-1_Float_Debug_32 bot, because that's
the one I tried in https://code.google.com/p/skia/issues/detail?id=1257
('deciding between CityHash, MD5, and SHA1 for image hash algorithm') :

Skia_NexusS_4-1_Float_Debug_32 improved 3% (19:03 -> 18:24) :
http://108.170.217.252:10117/builders/Skia_NexusS_4-1_Float_Debug_32/builds/1143
http://108.170.217.252:10117/builders/Skia_NexusS_4-1_Float_Debug_32/builds/1144

So this CL was definitely a win!  Cleaner, and performance got slightly better. 
Thanks, Ben.

Powered by Google App Engine
This is Rietveld 408576698