diff options
author | Jim Van Verth <jvanverth@google.com> | 2017-05-23 09:40:02 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-23 14:11:21 +0000 |
commit | eb63eb757e9f39730bc1b7a0a29d29b4d6c599fb (patch) | |
tree | 15abf83f9c3d753d1c72882fa3130850a7242fea /gm/shadowutils.cpp | |
parent | 564ad05f065297658e691315993610e8055295c1 (diff) |
Fix TSAN error for shadow cache
Change-Id: I84b94a19c724e2152d1eac269f425f7f0f2286f5
Reviewed-on: https://skia-review.googlesource.com/17706
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'gm/shadowutils.cpp')
-rw-r--r-- | gm/shadowutils.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gm/shadowutils.cpp b/gm/shadowutils.cpp index 974888181e..87c151e8ab 100644 --- a/gm/shadowutils.cpp +++ b/gm/shadowutils.cpp @@ -25,20 +25,13 @@ static constexpr int kH = 800; void draw_paths(SkCanvas* canvas, bool hideOccluders) { SkTArray<SkPath> paths; paths.push_back().addRoundRect(SkRect::MakeWH(50, 50), 10, 10); - // disable cache for now until we can figure out how to make it more stable - paths.back().setIsVolatile(true); SkRRect oddRRect; oddRRect.setNinePatch(SkRect::MakeWH(50, 50), 9, 13, 6, 16); paths.push_back().addRRect(oddRRect); - paths.back().setIsVolatile(true); paths.push_back().addRect(SkRect::MakeWH(50, 50)); - paths.back().setIsVolatile(true); paths.push_back().addCircle(25, 25, 25); - paths.back().setIsVolatile(true); paths.push_back().cubicTo(100, 50, 20, 100, 0, 0); - paths.back().setIsVolatile(true); paths.push_back().addOval(SkRect::MakeWH(20, 60)); - paths.back().setIsVolatile(true); static constexpr SkScalar kPad = 15.f; static constexpr SkScalar kLightR = 100.f; |