From: Jim Van Verth Date: Wed, 17 May 2017 19:41:07 +0000 (-0400) Subject: Disable resource cache in shadow_utils GM for now X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~36^2~160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c34a946d5a975ba8b8cd51f79b55174a5ec0f99f;p=platform%2Fupstream%2FlibSkiaSharp.git Disable resource cache in shadow_utils GM for now This should make the GMs more stable in tiled mode. Change-Id: I72996b1305fc99e60626af35267952d0a5c38624 Reviewed-on: https://skia-review.googlesource.com/17275 Reviewed-by: Mike Reed Commit-Queue: Jim Van Verth --- diff --git a/gm/shadowutils.cpp b/gm/shadowutils.cpp index 87c151e..9748881 100644 --- a/gm/shadowutils.cpp +++ b/gm/shadowutils.cpp @@ -25,13 +25,20 @@ static constexpr int kH = 800; void draw_paths(SkCanvas* canvas, bool hideOccluders) { SkTArray 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;