aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkRRect.h
diff options
context:
space:
mode:
authorGravatar Adrienne Walker <enne@chromium.org>2017-08-23 13:26:32 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-23 21:47:27 +0000
commitba9741d46718c44d6e95e990c476d865c1cf4e55 (patch)
treecd76046371521ecf2dfd531a915343ad24fcd023 /include/core/SkRRect.h
parent75109accaf8a8ca45fe26b5effdd5fe0641bd8ff (diff)
Validate rrect type in SkRRect::isValid
Bug: chromium: 758161 Change-Id: I2472ff59af2fab05d94d88d5effb44828e8a5132 Reviewed-on: https://skia-review.googlesource.com/37800 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Mike Klein <mtklein@google.com>
Diffstat (limited to 'include/core/SkRRect.h')
-rw-r--r--include/core/SkRRect.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h
index 4b7a33e43f..f359c9c167 100644
--- a/include/core/SkRRect.h
+++ b/include/core/SkRRect.h
@@ -83,6 +83,8 @@ public:
//!< different from the others and there must be one corner where
//!< both radii are non-zero.
kComplex_Type,
+
+ kLastType = kComplex_Type,
};
/**