aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRecords.h
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-05-17 17:57:13 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-18 11:43:34 +0000
commit184593ca8199f3458616bfa6fde145a423ea90a1 (patch)
treea95956b0d54fda94d9d3e74509945d314c70ca2e /src/core/SkRecords.h
parent88a808f1c6d28e83b5a9fd2add93c08edfcab739 (diff)
SkPath -> PreCachedPath
SkPath is not threadsafe. Gotta use PreCachedPath. TSAN is showing a race in SkPathRef::genID() to write the fGenerationID. Change-Id: I42d6ecadaa754a3c6796ca465981de430a0abb84 Reviewed-on: https://skia-review.googlesource.com/17279 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/core/SkRecords.h')
-rw-r--r--src/core/SkRecords.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkRecords.h b/src/core/SkRecords.h
index a63ef1c6a5..389730404c 100644
--- a/src/core/SkRecords.h
+++ b/src/core/SkRecords.h
@@ -348,7 +348,7 @@ RECORD(DrawVertices, kDraw_Tag|kHasPaint_Tag,
sk_sp<SkVertices> vertices;
SkBlendMode bmode);
RECORD(DrawShadowRec, kDraw_Tag,
- SkPath path;
+ PreCachedPath path;
SkDrawShadowRec rec);
RECORD(DrawAnnotation, 0, // TODO: kDraw_Tag, skia:5548
SkRect rect;