From f48e4755282d3d185f42fd2dd964d4bbd9887ee4 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Thu, 27 Jun 2013 18:39:39 +0000 Subject: Remove SK_DEBUG_PATH_REF R=bungeman@google.com Author: bsalomon@google.com Review URL: https://chromiumcodereview.appspot.com/18029006 git-svn-id: http://skia.googlecode.com/svn/trunk@9795 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkPath.h | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'include') diff --git a/include/core/SkPath.h b/include/core/SkPath.h index 4e2451b5e0..d4b79cda04 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 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::BlockRefType *operator->() const; - operator SkPathRef*(); - private: - SkAutoTUnref fPathRef; - SkPath* fOwner; - }; - -private: - PathRefDebugRef fPathRef; -#else SkAutoTUnref fPathRef; -#endif mutable SkRect fBounds; int fLastMoveToIndex; -- cgit v1.2.3