aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkDebug.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-06 17:16:26 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-06 17:16:26 +0000
commit490fb6b4713463954cc0283a9c30e754c45c6004 (patch)
tree96b45e3e20017eda04c6f6f7e7590eea12726893 /src/core/SkDebug.cpp
parentd7a9fcc61f2c513064f67b125c0b2eb918768bb7 (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/core/SkDebug.cpp')
-rw-r--r--src/core/SkDebug.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/SkDebug.cpp b/src/core/SkDebug.cpp
index d484f5eaff..b705a650ea 100644
--- a/src/core/SkDebug.cpp
+++ b/src/core/SkDebug.cpp
@@ -51,4 +51,9 @@ unsigned SkToUInt(uintmax_t x) {
return (unsigned)x;
}
+size_t SkToSizeT(uintmax_t x) {
+ SkASSERT((size_t)x == x);
+ return (size_t)x;
+}
+
#endif