aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPathRef.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-08-09 12:20:04 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-09 12:20:04 -0700
commitb47cd4b3d6daad037651daa20fae6770285966d6 (patch)
treed8d65e6eb94141545a87bdf0bbbab3a923fe10a7 /src/core/SkPathRef.cpp
parentc0fc9d63569fe9bf6cd10fb028d0a0606278c2da (diff)
Use SkNVRefCnt for a couple common types.
These types are ref-counted, but don't otherwise need a vtable. This makes them good candidates for SkNVRefCnt. Destruction can be a little more direct, and if nothing else, sizeof(T) will get a little smaller by dropping the vptr. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2232433002 Review-Url: https://codereview.chromium.org/2232433002
Diffstat (limited to 'src/core/SkPathRef.cpp')
-rw-r--r--src/core/SkPathRef.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/SkPathRef.cpp b/src/core/SkPathRef.cpp
index 74f3a220ce..06a1519872 100644
--- a/src/core/SkPathRef.cpp
+++ b/src/core/SkPathRef.cpp
@@ -675,7 +675,6 @@ uint8_t SkPathRef::Iter::peek() const {
#ifdef SK_DEBUG
void SkPathRef::validate() const {
- this->INHERITED::validate();
SkASSERT(static_cast<ptrdiff_t>(fFreeSpace) >= 0);
SkASSERT(reinterpret_cast<intptr_t>(fVerbs) - reinterpret_cast<intptr_t>(fPoints) >= 0);
SkASSERT((nullptr == fPoints) == (nullptr == fVerbs));