diff options
author | Cary Clark <caryclark@skia.org> | 2017-09-14 10:31:36 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-14 17:32:41 +0000 |
commit | b20154499a7c06d88f8d8b67fa5a19a130095640 (patch) | |
tree | 364145e656a7d21be74af841099db6430c650212 /src/core/SkPathPriv.h | |
parent | 7265ea32e5b543fa1cf0f12f469ac51f6a22f55b (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 'src/core/SkPathPriv.h')
-rw-r--r-- | src/core/SkPathPriv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/SkPathPriv.h b/src/core/SkPathPriv.h index febc4e35e5..89c1e6572f 100644 --- a/src/core/SkPathPriv.h +++ b/src/core/SkPathPriv.h @@ -12,6 +12,12 @@ class SkPathPriv { public: +#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 + enum FirstDirection { kCW_FirstDirection, // == SkPath::kCW_Direction kCCW_FirstDirection, // == SkPath::kCCW_Direction |