Make backdrop_hintrect_clipping GM use kClamp tile mode

Change-Id: Ic9d9200a7c1346d0e6bd70029331f9213db5e374
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/287380
Auto-Submit: Brian Salomon <bsalomon@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
This commit is contained in:
Brian Salomon 2020-05-04 10:33:38 -04:00 committed by Skia Commit-Bot
parent b71e7121ab
commit f686fa9af9

View File

@ -54,7 +54,9 @@ static void do_draw(SkCanvas* canvas, bool useClip, bool useHintRect) {
if (useClip) {
canvas->clipRect(r);
}
auto blur = SkImageFilters::Blur(sigma, sigma, nullptr);
// Using kClamp because kDecal, the default, produces transparency near the edge of the canvas's
// device.
auto blur = SkImageFilters::Blur(sigma, sigma, SkTileMode::kClamp, nullptr);
auto rec = SkCanvas::SaveLayerRec(drawrptr, nullptr, blur.get(), 0);
canvas->saveLayer(rec);
// draw something inside, just to demonstrate that we don't blur the new contents,