Review URL: https://codereview.chromium.org/
17902003
git-svn-id: http://skia.googlecode.com/svn/trunk@9768
2bbb7eff-a529-9590-31e7-
b0007b416f81
of SkPathRefs */
class PathRefDebugRef {
public:
- PathRefDebugRef(SkPath* owner);
PathRefDebugRef(SkPathRef* pr, SkPath* owner);
~PathRefDebugRef();
void reset(SkPathRef* ref);
#if SK_DEBUG_PATH_REF
-SkPath::PathRefDebugRef::PathRefDebugRef(SkPath* owner) : fOwner(owner) {}
-
SkPath::PathRefDebugRef::PathRefDebugRef(SkPathRef* pr, SkPath* owner)
-: fPathRef(pr)
-, fOwner(owner) {
+ : fPathRef(pr)
+ , fOwner(owner)
+{
pr->addOwner(owner);
}
SkPath::SkPath(const SkPath& that)
#if SK_DEBUG_PATH_REF
- : fPathRef(this)
+ : fPathRef(SkRef(that.fPathRef.get()), this)
#else
: fPathRef(SkRef(that.fPathRef.get()))
#endif