diff options
author | Mike Reed <reed@google.com> | 2017-02-14 10:12:34 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-14 15:46:30 +0000 |
commit | 8a8937c3d18e42f5d878885b40f3c1f8140627b7 (patch) | |
tree | 7ef35d475cdb70e7bf0fde1c72a6eff108de83e1 /gm | |
parent | 6a307cc6c48328edad1bca620d5718b402fc87f1 (diff) |
update gm to test 2 unclipped layers
BUG=skia:
Change-Id: I98dedcfc52c9a22169264fb465d60aad72b7515f
Reviewed-on: https://skia-review.googlesource.com/8408
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'gm')
-rw-r--r-- | gm/aaclip.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gm/aaclip.cpp b/gm/aaclip.cpp index e9d4476762..d2c5ff54c6 100644 --- a/gm/aaclip.cpp +++ b/gm/aaclip.cpp @@ -51,7 +51,8 @@ DEF_SIMPLE_GM(dont_clip_to_layer, canvas, 120, 120) { canvas->saveLayer(&r, nullptr); canvas->drawColor(SK_ColorRED); - SkRect r0 = SkRect::MakeXYWH(r.left(), r.top(), r.width(), r.height()/2); + SkRect r0 = { 20, 20, 100, 55 }; + SkRect r1 = { 20, 65, 100, 100 }; SkCanvas::SaveLayerRec rec; rec.fPaint = nullptr; @@ -59,6 +60,8 @@ DEF_SIMPLE_GM(dont_clip_to_layer, canvas, 120, 120) { rec.fBackdrop = nullptr; rec.fSaveLayerFlags = 1 << 31;//SkCanvas::kDontClipToLayer_Legacy_SaveLayerFlag; canvas->saveLayer(rec); + rec.fBounds = &r1; + canvas->saveLayer(rec); do_draw(canvas, r); canvas->restore(); |