aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkTypes.h
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 /include/core/SkTypes.h
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 'include/core/SkTypes.h')
-rw-r--r--include/core/SkTypes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h
index 969aac77b6..ab43767c6d 100644
--- a/include/core/SkTypes.h
+++ b/include/core/SkTypes.h
@@ -219,6 +219,7 @@ typedef uint8_t SkBool8;
SK_API uint32_t SkToU32(uintmax_t);
SK_API int SkToInt(intmax_t);
SK_API unsigned SkToUInt(uintmax_t);
+ SK_API size_t SkToSizeT(uintmax_t);
#else
#define SkToS8(x) ((int8_t)(x))
#define SkToU8(x) ((uint8_t)(x))
@@ -228,6 +229,7 @@ typedef uint8_t SkBool8;
#define SkToU32(x) ((uint32_t)(x))
#define SkToInt(x) ((int)(x))
#define SkToUInt(x) ((unsigned)(x))
+ #define SkToSizeT(x) ((size_t)(x))
#endif
/** Returns 0 or 1 based on the condition