aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private/GrSingleOwner.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2016-01-06 09:25:13 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-06 09:25:14 -0800
commit5b1dec7cde2fae7b48618407cb4ff5a644ca28d2 (patch)
tree8595b45a1cc4c0d806d043e3ea09c6f85a3e0162 /include/private/GrSingleOwner.h
parent53b1c09c139d2e8e04bc86e230256a23629ad7f2 (diff)
Add additional assert to GrSingleOwner
Diffstat (limited to 'include/private/GrSingleOwner.h')
-rw-r--r--include/private/GrSingleOwner.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/private/GrSingleOwner.h b/include/private/GrSingleOwner.h
index e793e9e973..dea982e89a 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;