Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: include/core/SkPath.h

Issue 18029006: Remove SK_DEBUG_PATH_REF (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkPath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPath.h
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index 4e2451b5e04a4ab5e79a20749c208ec8c4310e8d..d4b79cda0443cd73417dde72e9d3a6f786737e01 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -30,10 +30,6 @@ class SkString;
class SkPathRef;
class SkRRect;
-#ifndef SK_DEBUG_PATH_REF
- #define SK_DEBUG_PATH_REF 0
-#endif
-
/** \class SkPath
The SkPath class encapsulates compound (multiple contour) geometric paths
@@ -945,29 +941,7 @@ private:
kSegmentMask_SerializationShift = 0 // requires 4 bits
};
-#if SK_DEBUG_PATH_REF
-public:
- /** Debugging wrapper for SkAutoTUnref<SkPathRef> used to track owners (SkPaths)
- of SkPathRefs */
- class PathRefDebugRef {
- public:
- PathRefDebugRef(SkPathRef* pr, SkPath* owner);
- ~PathRefDebugRef();
- void reset(SkPathRef* ref);
- void swap(PathRefDebugRef* other);
- SkPathRef* get() const;
- SkAutoTUnref<SkPathRef>::BlockRefType *operator->() const;
- operator SkPathRef*();
- private:
- SkAutoTUnref<SkPathRef> fPathRef;
- SkPath* fOwner;
- };
-
-private:
- PathRefDebugRef fPathRef;
-#else
SkAutoTUnref<SkPathRef> fPathRef;
-#endif
mutable SkRect fBounds;
int fLastMoveToIndex;
« no previous file with comments | « no previous file | src/core/SkPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698