aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-11-21 06:19:36 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-21 06:19:36 -0800
commit5b69377507478623dcf5b11f3ecb010f87c4794f (patch)
tree800d755d25ec30551128e645f0b873a10de2e1e5 /src
parente77dadd91ae6f4319c2c047e7e36cc79bb4d1eff (diff)
Add MultiPictureDraw to nanobench
I would like some guard against performance regressions on our side before turning layer hoisting on in Chromium. TBR=bsalomon@google.com Committed: https://skia.googlesource.com/skia/+/0ddad31012dabfc1267effc8071d37f7d606efbe Review URL: https://codereview.chromium.org/731973005
Diffstat (limited to 'src')
-rw-r--r--src/core/SkColorTable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkColorTable.cpp b/src/core/SkColorTable.cpp
index f2eab61483..0d033ec2be 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;
}