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

Issue 14265010: Make SkSHA1 and SkM5 use common SkDigestHash result type (Closed)

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

Description

Make SkSHA1 and SkM5 use common SkDigestHash result type

Patch Set 1 #

Total comments: 4

Patch Set 2 : rename_set_to_copyFrom #

Total comments: 1

Patch Set 3 : add_SkHashDigest_wrapper_for_cityhash #

Total comments: 3

Patch Set 4 : enable_SkHashDigest_wrapper_for_cityhash #

Patch Set 5 : enable_SkHashDigest_wrapper_for_cityhash #

Total comments: 4

Patch Set 6 : switch_to_MD5 #

Patch Set 7 : switch_to_MD5 #

Patch Set 8 : switch_to_MD5 #

Total comments: 7

Patch Set 9 : revert_all_md5_and_sha1_changes #

Patch Set 10 : revert_all_md5_and_sha1_changes #

Patch Set 11 : revert_all_md5_and_sha1_changes #

Total comments: 2

Patch Set 12 : hash_one_row_of_pixels_at_a_time #

Total comments: 4

Patch Set 13 : add_timing_printfs #

Patch Set 14 : sync_to_r8826 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+409 lines, -84 lines) Patch
M gm/gm_expectations.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +36 lines, -7 lines 0 comments Download
M gm/gmmain.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +44 lines, -9 lines 0 comments Download
M gm/tests/outputs/compared-against-different-pixels-images/output-expected/json-summary.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -4 lines 0 comments Download
M gm/tests/outputs/compared-against-different-pixels-json/output-expected/json-summary.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -4 lines 0 comments Download
M gm/tests/outputs/compared-against-empty-dir/output-expected/json-summary.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
gm/tests/outputs/compared-against-identical-bytes-images/output-expected/json-summary.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -4 lines 0 comments Download
M gm/tests/outputs/compared-against-identical-bytes-json/output-expected/json-summary.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -4 lines 0 comments Download
M gm/tests/outputs/compared-against-identical-pixels-images/output-expected/json-summary.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -4 lines 0 comments Download
M gm/tests/outputs/compared-against-identical-pixels-json/output-expected/json-summary.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -4 lines 0 comments Download
M gm/tests/outputs/ignore-expectations-mismatch/output-expected/json-summary.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -4 lines 0 comments Download
M gm/tests/outputs/intentionally-skipped-tests/output-expected/json-summary.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -4 lines 0 comments Download
M gm/tests/outputs/no-readpath/output-expected/json-summary.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M gm/tests/outputs/nonverbose/output-expected/json-summary.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M gm/tests/outputs/pipe-playback-failure/output-expected/json-summary.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -6 lines 0 comments Download
M src/utils/SkBitmapHasher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +15 lines, -5 lines 0 comments Download
M src/utils/SkBitmapHasher.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +38 lines, -7 lines 0 comments Download
M src/utils/SkBitmapTransformer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +23 lines, -0 lines 0 comments Download
M src/utils/SkBitmapTransformer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +27 lines, -0 lines 0 comments Download
A src/utils/SkHashDigest.h View 1 2 1 chunk +149 lines, -0 lines 0 comments Download
M tests/BitmapHasherTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +33 lines, -12 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
epoger
https://codereview.chromium.org/14265010/diff/1/bench/ChecksumBench.cpp File bench/ChecksumBench.cpp (right): https://codereview.chromium.org/14265010/diff/1/bench/ChecksumBench.cpp#newcode1 bench/ChecksumBench.cpp:1: /* Toplevel comment: the reason for this change is: ...
7 years, 8 months ago (2013-04-15 18:21:38 UTC) #1
epoger
https://codereview.chromium.org/14265010/diff/10001/src/utils/SkHashDigest.h File src/utils/SkHashDigest.h (right): https://codereview.chromium.org/14265010/diff/10001/src/utils/SkHashDigest.h#newcode34 src/utils/SkHashDigest.h:34: void copyFrom(void *data, size_t length) { patchset 2: renamed ...
7 years, 8 months ago (2013-04-15 19:17:03 UTC) #2
bungeman-skia
https://codereview.chromium.org/14265010/diff/1/src/utils/SkMD5.h File src/utils/SkMD5.h (right): https://codereview.chromium.org/14265010/diff/1/src/utils/SkMD5.h#newcode37 src/utils/SkMD5.h:37: void finish(SkHashDigest& digest); I see no reason for this ...
7 years, 8 months ago (2013-04-15 19:19:55 UTC) #3
epoger
https://codereview.chromium.org/14265010/diff/1/src/utils/SkMD5.h File src/utils/SkMD5.h (right): https://codereview.chromium.org/14265010/diff/1/src/utils/SkMD5.h#newcode37 src/utils/SkMD5.h:37: void finish(SkHashDigest& digest); On 2013/04/15 19:19:56, bungeman1 wrote: > ...
7 years, 8 months ago (2013-04-15 19:32:41 UTC) #4
bungeman-skia
On 2013/04/15 19:32:41, epoger wrote: > https://codereview.chromium.org/14265010/diff/1/src/utils/SkMD5.h > File src/utils/SkMD5.h (right): > > https://codereview.chromium.org/14265010/diff/1/src/utils/SkMD5.h#newcode37 > ...
7 years, 8 months ago (2013-04-15 19:56:38 UTC) #5
epoger
On 2013/04/15 19:56:38, bungeman1 wrote: > I'm just suggesting that the interface be something more ...
7 years, 8 months ago (2013-04-15 19:59:39 UTC) #6
epoger
https://codereview.chromium.org/14265010/diff/14001/gm/gm_expectations.h File gm/gm_expectations.h (right): https://codereview.chromium.org/14265010/diff/14001/gm/gm_expectations.h#newcode15 gm/gm_expectations.h:15: #include "SkHashDigest.h" Patchset 3 is just a checkpoint... it's ...
7 years, 8 months ago (2013-04-18 16:39:34 UTC) #7
epoger
https://codereview.chromium.org/14265010/diff/17002/gm/gm_expectations.h File gm/gm_expectations.h (right): https://codereview.chromium.org/14265010/diff/17002/gm/gm_expectations.h#newcode16 gm/gm_expectations.h:16: #include "SkImageDecoder.h" Patchset 4 and 5 are the same ...
7 years, 8 months ago (2013-04-18 17:02:49 UTC) #8
epoger
OK, Ben, time for us to re-engage on this... please take a look, and ping ...
7 years, 8 months ago (2013-04-18 17:45:48 UTC) #9
epoger
https://codereview.chromium.org/14265010/diff/36002/gm/gm_expectations.h File gm/gm_expectations.h (right): https://codereview.chromium.org/14265010/diff/36002/gm/gm_expectations.h#newcode58 gm/gm_expectations.h:58: return Json::Value(checksum.toHexString().c_str()); If this code got the hash digest ...
7 years, 8 months ago (2013-04-18 18:07:13 UTC) #10
epoger
https://codereview.chromium.org/14265010/diff/53019/src/utils/SkBitmapHasher.cpp File src/utils/SkBitmapHasher.cpp (right): https://codereview.chromium.org/14265010/diff/53019/src/utils/SkBitmapHasher.cpp#newcode3 src/utils/SkBitmapHasher.cpp:3: * Copyright 2012 Google Inc. Patchsets 9, 10, and ...
7 years, 8 months ago (2013-04-19 17:20:53 UTC) #11
bungeman-skia
> Ben... do you think I'm on the right track here? This is looking better, ...
7 years, 8 months ago (2013-04-19 20:18:02 UTC) #12
epoger
https://codereview.chromium.org/14265010/diff/12005/src/utils/SkBitmapHasher.cpp File src/utils/SkBitmapHasher.cpp (right): https://codereview.chromium.org/14265010/diff/12005/src/utils/SkBitmapHasher.cpp#newcode38 src/utils/SkBitmapHasher.cpp:38: // Add all the pixel data, one transformed row ...
7 years, 8 months ago (2013-04-21 10:54:57 UTC) #13
epoger
There is a good chance that I won't be committing this change at all, because ...
7 years, 8 months ago (2013-04-22 01:22:28 UTC) #14
bungeman-skia
Back of the envelope... 2000 tests, 4MB (1000*1000*4) for each is ~10GB of output. MD5 ...
7 years, 8 months ago (2013-04-22 05:14:02 UTC) #15
epoger
Once Ben commits https://codereview.chromium.org/14267031/ ('ARGB image encoder for checksums.'), and we've confirmed that it does ...
7 years, 8 months ago (2013-04-23 15:07:36 UTC) #16
epoger
7 years, 8 months ago (2013-04-24 18:25:09 UTC) #17
Closing in favor of newer https://codereview.chromium.org/14054012/ ('Assess
performance impact of using 64-bit-truncated MD5 instead of 64-bit CityHash')

Powered by Google App Engine
This is Rietveld 408576698