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/SkColorTable.cpp

Issue 731973005: Add MultiPictureDraw to nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Disable multithreading in nanobench Created 6 years, 1 month 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
« bench/nanobench.cpp ('K') | « include/core/SkColorTable.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« bench/nanobench.cpp ('K') | « include/core/SkColorTable.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698