From 8a8937c3d18e42f5d878885b40f3c1f8140627b7 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Tue, 14 Feb 2017 10:12:34 -0500 Subject: update gm to test 2 unclipped layers BUG=skia: Change-Id: I98dedcfc52c9a22169264fb465d60aad72b7515f Reviewed-on: https://skia-review.googlesource.com/8408 Reviewed-by: Mike Reed Commit-Queue: Mike Reed --- gm/aaclip.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gm') 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(); -- cgit v1.2.3