diff options
author | 2014-03-06 17:16:26 +0000 | |
---|---|---|
committer | 2014-03-06 17:16:26 +0000 | |
commit | 490fb6b4713463954cc0283a9c30e754c45c6004 (patch) | |
tree | 96b45e3e20017eda04c6f6f7e7590eea12726893 /src/utils/SkMD5.h | |
parent | d7a9fcc61f2c513064f67b125c0b2eb918768bb7 (diff) |
Add size_t bytesWritten() const to SkWStream.
BUG=skia:
R=reed@google.com, mtklein@google.com, robertphillips@google.com, bungeman@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/187653003
git-svn-id: http://skia.googlecode.com/svn/trunk@13684 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils/SkMD5.h')
-rw-r--r-- | src/utils/SkMD5.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/SkMD5.h b/src/utils/SkMD5.h index 0148641edc..4f504782b6 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); |