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

Unified Diff: src/core/SkPixelRef.cpp

Issue 313823004: Add assertHeld() to SkMutex. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more Created 6 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 | « src/core/SkPaint.cpp ('k') | src/core/SkScaledImageCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPixelRef.cpp
diff --git a/src/core/SkPixelRef.cpp b/src/core/SkPixelRef.cpp
index 6a26ca0e01efa6559bddabf421b6f1ec426ee7a1..bfa4ae24d944cbeb39bcdd21fd5b817db7949293 100644
--- a/src/core/SkPixelRef.cpp
+++ b/src/core/SkPixelRef.cpp
@@ -13,25 +13,25 @@
#ifdef SK_USE_POSIX_THREADS
static SkBaseMutex gPixelRefMutexRing[] = {
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
-
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
-
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
-
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
- { PTHREAD_MUTEX_INITIALIZER }, { PTHREAD_MUTEX_INITIALIZER },
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
+ SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT,
};
// must be a power-of-2. undef to just use 1 mutex
« no previous file with comments | « src/core/SkPaint.cpp ('k') | src/core/SkScaledImageCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698