aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPath.h
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2017-09-14 10:31:36 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-14 17:32:41 +0000
commitb20154499a7c06d88f8d8b67fa5a19a130095640 (patch)
tree364145e656a7d21be74af841099db6430c650212 /include/core/SkPath.h
parent7265ea32e5b543fa1cf0f12f469ac51f6a22f55b (diff)
make kPathRefGenIDBitCnt private
kPathRefGenIDBitCnt is used only by SkPath.cpp and SkPathRef.cpp. Curiously, there's no existing private declarations shared by SkPath and SkPathRef, so I added kPathRefGenIDBitCnt to SkPathPriv.h as the go-between. If there's an existing convention I overlooked, please let me know. R=reed@google.com,djsollen@google.com Bug: skia: 6898 Change-Id: I929d780c3b4a10e5cf78e7176a7516abf912508e Reviewed-on: https://skia-review.googlesource.com/46560 Reviewed-by: Derek Sollenberger <djsollen@google.com> Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'include/core/SkPath.h')
-rw-r--r--include/core/SkPath.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index e38b464d85..dd77ef425f 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -1611,19 +1611,13 @@ enum Direction {
*/
uint32_t getGenerationID() const;
-#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
- static const int kPathRefGenIDBitCnt = 30; // leave room for the fill type (skbug.com/1762)
-#else
- static const int kPathRefGenIDBitCnt = 32;
-#endif
-
+#ifdef SK_SUPPORT_DIRECT_PATHREF_VALIDATION
/** Returns if SkPath data is consistent. Corrupt SkPath data is detected if
internal values are out of range or internal storage does not match
array dimensions.
@return true if SkPath data is consistent
*/
-#ifdef SK_SUPPORT_DIRECT_PATHREF_VALIDATION
bool isValid() const { return this->isValidImpl() && fPathRef->isValid(); }
#else
bool isValid() const { return this->isValidImpl(); }