Index: gm/imagefiltersscaled.cpp |
diff --git a/gm/imagefiltersscaled.cpp b/gm/imagefiltersscaled.cpp |
index e7a68d747d69b140872552e398e5d3daee57450d..2e4756a9b3ccb14073a55b447ca668b77f9614e1 100644 |
--- a/gm/imagefiltersscaled.cpp |
+++ b/gm/imagefiltersscaled.cpp |
@@ -131,6 +131,7 @@ |
paint.setAntiAlias(true); |
canvas->save(); |
canvas->scale(scales[j].fX, scales[j].fY); |
+ canvas->clipRect(r); |
if (5 == i) { |
canvas->translate(SkIntToScalar(-32), 0); |
} else if (6 == i) { |