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

Unified Diff: src/utils/SkMD5.h

Issue 187653003: Add size_t bytesWritten() const to SkWStream. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add and use SkToSizeT Created 6 years, 9 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
Index: src/utils/SkMD5.h
diff --git a/src/utils/SkMD5.h b/src/utils/SkMD5.h
index 0148641edc82c82baf505e952f697a6568b7448e..4f504782b6b8734c7ab16c442e5640e8be542f0a 100644
--- a/src/utils/SkMD5.h
+++ b/src/utils/SkMD5.h
@@ -29,6 +29,8 @@ public:
return true;
}
+ virtual size_t bytesWritten() const SK_OVERRIDE { return SkToSizeT(this->byteCount); }
+
/** Processes input, adding it to the digest. Calling this after finish is undefined. */
void update(const uint8_t* input, size_t length);
« src/core/SkStream.cpp ('K') | « src/core/SkStream.cpp ('k') | src/utils/SkSHA1.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698