diff options
author | mtklein <mtklein@chromium.org> | 2016-09-01 13:49:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-01 13:49:13 -0700 |
commit | d0634eeb565d706df2e148a33f137c6edf42bf2e (patch) | |
tree | cefb5d7f7b18aab3299904594d6995e07b368e47 /src/core/SkRecords.cpp | |
parent | 07f0446e9a36e39814a92a1681ab59de79275651 (diff) |
Force SkPath::getConvexity() cache for thread safety.
I happened to stumble on this in a run of TSAN:
https://luci-milo.appspot.com/swarming/task/30fffe9497dc6310/steps/dm/0/stdout
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2300003003
Review-Url: https://codereview.chromium.org/2300003003
Diffstat (limited to 'src/core/SkRecords.cpp')
-rw-r--r-- | src/core/SkRecords.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/SkRecords.cpp b/src/core/SkRecords.cpp index 81dd92f9ef..555f992369 100644 --- a/src/core/SkRecords.cpp +++ b/src/core/SkRecords.cpp @@ -11,6 +11,7 @@ namespace SkRecords { PreCachedPath::PreCachedPath(const SkPath& path) : SkPath(path) { this->updateBoundsCache(); + (void)this->getConvexity(); #if 0 // Disabled to see if we ever really race on this. It costs time, chromium:496982. SkPathPriv::FirstDirection junk; (void)SkPathPriv::CheapComputeFirstDirection(*this, &junk); |