aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkRefCnt.h
diff options
context:
space:
mode:
authorGravatar Derek Sollenberger <djsollen@google.com>2017-03-23 08:54:08 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-23 14:32:47 +0000
commit3849b64cbbdb7db6d5d4af44479b2d7c5bf5e6c7 (patch)
treef1a17086076b3ebbfb5b76de036a7f298b145955 /include/core/SkRefCnt.h
parent6dd88144d5ae947090499793d68322f661b6192a (diff)
Only perform SkSafeRef race detection if on android framework
Change-Id: If524a02e916d711057d6f2102efb0404b1c0b988 Reviewed-on: https://skia-review.googlesource.com/10036 Commit-Queue: Ravi Mistry <rmistry@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'include/core/SkRefCnt.h')
-rw-r--r--include/core/SkRefCnt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h
index 04670e8e12..7b12f6a6e1 100644
--- a/include/core/SkRefCnt.h
+++ b/include/core/SkRefCnt.h
@@ -138,7 +138,7 @@ class SK_API SkRefCnt : public SkRefCntBase {
before unref(), in case the two pointers point to the same object.
*/
-#if defined(SK_BUILD_FOR_ANDROID_FRAMEWORK) || defined(SK_DEBUG)
+#if defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)
// This version heuristically detects data races, since those otherwise result
// in redundant reference count decrements, which are exceedingly
// difficult to debug.
@@ -157,7 +157,7 @@ class SK_API SkRefCnt : public SkRefCntBase {
dst = src; \
} while (0)
-#else /* !(SK_BUILD_FOR_ANDROID_FRAMEWORK || SK_DEBUG) */
+#else /* !SK_BUILD_FOR_ANDROID_FRAMEWORK */
#define SkRefCnt_SafeAssign(dst, src) \
do { \