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

Unified Diff: src/core/SkLazyPtr.h

Issue 308003014: Clean up SkLazyPtrs only in SK_DEVELOPER mode. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkLazyPtr.h
diff --git a/src/core/SkLazyPtr.h b/src/core/SkLazyPtr.h
index 515086876c636bf99fdecacb6db15649ae0429ee..71876e7b41f248c95e09c9b719fe588b34a8ce91 100644
--- a/src/core/SkLazyPtr.h
+++ b/src/core/SkLazyPtr.h
@@ -97,7 +97,7 @@ public:
return ptr ? ptr : try_cas<T*, Destroy>(&fPtr, Create());
}
-#ifdef SK_DEBUG
+#ifdef SK_DEVELOPER
// FIXME: We know we leak refs on some classes. For now, let them leak.
void cleanup(SkFontConfigInterface*) {}
void cleanup(SkTypeface*) {}
@@ -125,7 +125,7 @@ public:
return ptr ? ptr : try_cas<T*, Destroy>(&fArray[i], Create(i));
}
-#ifdef SK_DEBUG
+#ifdef SK_DEVELOPER
~SkLazyPtrArray() {
for (int i = 0; i < N; i++) {
Destroy((T*)fArray[i]);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698