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

Unified Diff: bench/ChecksumBench.cpp

Issue 1913173003: SkMD5: .update() -> .write() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-04-22 (Friday) 16:17:21 EDT Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkMD5.h » ('j') | src/core/SkMD5.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/ChecksumBench.cpp
diff --git a/bench/ChecksumBench.cpp b/bench/ChecksumBench.cpp
index cba9572aa330974529dbc85d67a6805a418c9859..4c2ac1a3962c634696a2dc35601c7cdc4130a3c3 100644
--- a/bench/ChecksumBench.cpp
+++ b/bench/ChecksumBench.cpp
@@ -51,7 +51,7 @@ protected:
case kMD5_ChecksumType: {
for (int i = 0; i < loops; i++) {
SkMD5 md5;
- md5.update(reinterpret_cast<uint8_t*>(fData), sizeof(fData));
+ md5.write(fData, sizeof(fData));
SkMD5::Digest digest;
md5.finish(digest);
}
« no previous file with comments | « no previous file | src/core/SkMD5.h » ('j') | src/core/SkMD5.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698