aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPicture.cpp
diff options
context:
space:
mode:
authorGravatar Herb Derby <herb@google.com>2017-09-20 11:56:00 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-21 20:29:24 +0000
commitc402b778d5707ac2f66c9f38d5bbc20fb79321b5 (patch)
treea44c07179a8bef6fda66177acc14d18ec5e4cd0b /src/core/SkPicture.cpp
parent0e42586036c3fbd3c3092680df853a0c2e2e82fa (diff)
Remove sk_64_isS32 and sk_64_asS32
This is an API change. I assume that only Skia uses these routines. Change-Id: Iefc98fa5c0b83eb4f52c478e345fd99121ecb254 Reviewed-on: https://skia-review.googlesource.com/129440 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/core/SkPicture.cpp')
-rw-r--r--src/core/SkPicture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp
index 5993e49972..2325fde864 100644
--- a/src/core/SkPicture.cpp
+++ b/src/core/SkPicture.cpp
@@ -245,7 +245,7 @@ static sk_sp<SkData> custom_serialize(const SkPicture* picture, const SkSerialPr
auto data = procs.fPictureProc(const_cast<SkPicture*>(picture), procs.fPictureCtx);
if (data) {
size_t size = data->size();
- if (!sk_64_isS32(size) || size <= 1) {
+ if (!SkTFitsIn<int32_t>(size) || size <= 1) {
return SkData::MakeEmpty();
}
return data;