aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-02-16 12:42:24 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-18 13:34:30 +0000
commit251bf3e089b7422980e39bff38623c5b726c2ee4 (patch)
tree82f97c70c53a35c67c66f5a74b33931bfcea831f /include/core
parent16fcb230cc3ed663f88238760409f415872b85b3 (diff)
SkRegion deserialization more robust
BUG=chromium:688987 Change-Id: Ide6d70330c8cd1fce814eb2c445da1fbff498ef6 Reviewed-on: https://skia-review.googlesource.com/8496 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkRegion.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkRegion.h b/include/core/SkRegion.h
index a0f0e4ad3c..49e5a19dbb 100644
--- a/include/core/SkRegion.h
+++ b/include/core/SkRegion.h
@@ -436,6 +436,8 @@ private:
int count_runtype_values(int* itop, int* ibot) const;
+ bool isValid() const;
+
static void BuildRectRuns(const SkIRect& bounds,
RunType runs[kRectRegionRuns]);