aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/shadowutils.cpp
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2017-05-18 20:15:44 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-18 20:15:53 +0000
commite739f15397455e06d8b60b84d47bacdebbc20337 (patch)
tree0d4bf9c20795ebb0f4c1e1d89d41bd5d034137ed /gm/shadowutils.cpp
parent0e616cf9e34b306d53fb69a4db76fee02fd1dcc3 (diff)
Revert "Revert "Disable resource cache in shadow_utils GM for now""
This reverts commit 0b58ef7b525e5325ecd194c4b470e4c924cbb56a. Reason for revert: Wasn't actually fixed. Original change's description: > Revert "Disable resource cache in shadow_utils GM for now" > > This reverts commit c34a946d5a975ba8b8cd51f79b55174a5ec0f99f. > > Reason for revert: This is probably fixed with https://skia-review.googlesource.com/c/17279/. > > Original change's description: > > 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 <reed@google.com> > > Commit-Queue: Jim Van Verth <jvanverth@google.com> > > > > TBR=jvanverth@google.com,reed@google.com > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > > Change-Id: I0d21652a301b3f81e7ec04638bedbaabc723e583 > Reviewed-on: https://skia-review.googlesource.com/17304 > Reviewed-by: Jim Van Verth <jvanverth@google.com> > Commit-Queue: Jim Van Verth <jvanverth@google.com> > TBR=mtklein@google.com,jvanverth@google.com,reviews@skia.org,reed@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Change-Id: If606795bfeb4e6ed78f199fcb86ee2767bde5216 Reviewed-on: https://skia-review.googlesource.com/17371 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'gm/shadowutils.cpp')
-rw-r--r--gm/shadowutils.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gm/shadowutils.cpp b/gm/shadowutils.cpp
index 87c151e8ab..974888181e 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<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;