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/SkPathRef.cpp | |
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/SkPathRef.cpp')
-rw-r--r-- | src/core/SkPathRef.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkPathRef.cpp b/src/core/SkPathRef.cpp index 46f26606ee..4f550afa5a 100644 --- a/src/core/SkPathRef.cpp +++ b/src/core/SkPathRef.cpp @@ -10,6 +10,7 @@ #include "SkOnce.h" #include "SkPath.h" #include "SkPathRef.h" +#include "SkPathPriv.h" #include <limits> ////////////////////////////////////////////////////////////////////////////// @@ -592,7 +593,7 @@ SkPoint* SkPathRef::growForVerb(int /* SkPath::Verb*/ verb, SkScalar weight) { uint32_t SkPathRef::genID() const { SkASSERT(!fEditorsAttached); - static const uint32_t kMask = (static_cast<int64_t>(1) << SkPath::kPathRefGenIDBitCnt) - 1; + static const uint32_t kMask = (static_cast<int64_t>(1) << SkPathPriv::kPathRefGenIDBitCnt) - 1; if (!fGenerationID) { if (0 == fPointCnt && 0 == fVerbCnt) { fGenerationID = kEmptyGenID; |