diff options
author | 2014-07-08 12:30:39 -0700 | |
---|---|---|
committer | 2014-07-08 12:30:39 -0700 | |
commit | d5e3e6ae1b3434ad1158f441902ff65f1eeaa3a7 (patch) | |
tree | 5a05aeb57732eefef0bf13c2961eb0be80a671e9 /bench | |
parent | f9552230dc0d15fd1c535ad6351c3a8edde5ac82 (diff) |
Add SkRacy
SkRacy<T> is a zero-overhead wrapper for a T, except it also
silences race warnings when TSAN is running.
Here we apply in several classes. In SkMatrix and SkPathRef,
we use it to opportunistically cache some idempotent work.
In SkPixelRef, we wrap the genIDs. We think the worst that
can happen here is we'll increment the global next-genID a
few times instead of once when we go to get another ID.
BUG=skia:
R=reed@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/371363004
Diffstat (limited to 'bench')
0 files changed, 0 insertions, 0 deletions