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

Unified Diff: tests/PictureTest.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
« src/core/SkMD5.cpp ('K') | « tests/MD5Test.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PictureTest.cpp
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp
index f6ed59e81a9af0e82a2491a7c4e8cfc8918e2954..9e36d841df4535a6497e6edb057e72d4db5b7a38 100644
--- a/tests/PictureTest.cpp
+++ b/tests/PictureTest.cpp
@@ -874,7 +874,7 @@ static void md5(const SkBitmap& bm, SkMD5::Digest* digest) {
SkMD5 md5;
size_t rowLen = bm.info().bytesPerPixel() * bm.width();
for (int y = 0; y < bm.height(); ++y) {
- md5.update(static_cast<uint8_t*>(bm.getAddr(0, y)), rowLen);
+ md5.write(bm.getAddr(0, y), rowLen);
}
md5.finish(*digest);
}
« src/core/SkMD5.cpp ('K') | « tests/MD5Test.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698