From 79a1a97db7c46f8828af47541643750b488804a2 Mon Sep 17 00:00:00 2001 From: Jim Van Verth Date: Mon, 22 May 2017 17:48:28 -0400 Subject: [PATCH] Fix TSAN bot Bug: skia: Change-Id: I5626e4e4277255b1c0c10f912829ac2cd2ed1a8c Reviewed-on: https://skia-review.googlesource.com/17600 Reviewed-by: Jim Van Verth Commit-Queue: Jim Van Verth --- gm/shadowutils.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gm/shadowutils.cpp b/gm/shadowutils.cpp index fbe73c6..9748881 100644 --- a/gm/shadowutils.cpp +++ b/gm/shadowutils.cpp @@ -30,10 +30,15 @@ void draw_paths(SkCanvas* canvas, bool hideOccluders) { 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; -- 2.7.4