Index: src/core/SkColorTable.cpp |
diff --git a/src/core/SkColorTable.cpp b/src/core/SkColorTable.cpp |
index f2eab614838c35eee04ad0f63b50e4ef93af6d2c..0d033ec2be9e87cbcc08e7de6209c7889d583b1e 100644 |
--- a/src/core/SkColorTable.cpp |
+++ b/src/core/SkColorTable.cpp |
@@ -70,7 +70,7 @@ const uint16_t* SkColorTable::lock16BitCache() { |
build_16bitcache(f16BitCache, fColors, fCount); |
} |
- SkDEBUGCODE(f16BitCacheLockCount += 1); |
+ SkDEBUGCODE(sk_atomic_inc(&f16BitCacheLockCount)); |
return f16BitCache; |
} |