aboutsummaryrefslogtreecommitdiff
path: root/tests/CodecTest.cpp
diff options
context:
space:
mode:
authorhalcanary <halcanary@google.com>2016-04-25 10:29:36 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-25 10:29:36 -0700
commit1e9030472e59befbe8faaf42fd166300534d97d3 (patch)
treec51a0cde7f6a78b6f4e040f8b61c5e24415fac6d /tests/CodecTest.cpp
parentac6c75056f1e8e5a5d7c3c4b64df4113368d9c31 (diff)
SkMD5: .update() -> .write()
Review URL: https://codereview.chromium.org/1913173003
Diffstat (limited to 'tests/CodecTest.cpp')
-rw-r--r--tests/CodecTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/CodecTest.cpp b/tests/CodecTest.cpp
index bdb5e7792e..5ac19d9f70 100644
--- a/tests/CodecTest.cpp
+++ b/tests/CodecTest.cpp
@@ -32,7 +32,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);
}