Index: include/private/GrSingleOwner.h |
diff --git a/include/private/GrSingleOwner.h b/include/private/GrSingleOwner.h |
index e793e9e9737990b7f76d7649a8344921f0ab3e27..dea982e89a048ffe0cb74ed7371f07f7f16ffe4a 100644 |
--- a/include/private/GrSingleOwner.h |
+++ b/include/private/GrSingleOwner.h |
@@ -37,6 +37,7 @@ private: |
void exit() { |
SkAutoMutexAcquire lock(fMutex); |
+ SkASSERT(fOwner == SkGetThreadID()); |
fReentranceCount--; |
if (fReentranceCount == 0) { |
fOwner = kIllegalThreadID; |