Index: gm/imagefiltersscaled.cpp |
diff --git a/gm/imagefiltersscaled.cpp b/gm/imagefiltersscaled.cpp |
index ad52d902e76062292eb9181cac6df3ad7d0f205f..a9c4a10587515c5eaf859df15e903bdc58132b29 100644 |
--- a/gm/imagefiltersscaled.cpp |
+++ b/gm/imagefiltersscaled.cpp |
@@ -13,6 +13,7 @@ |
#include "SkDropShadowImageFilter.h" |
#include "SkGradientShader.h" |
#include "SkMorphologyImageFilter.h" |
+#include "SkOffsetImageFilter.h" |
#include "SkScalar.h" |
namespace skiagm { |
@@ -96,6 +97,7 @@ protected: |
checkerboard.get()), |
new SkDilateImageFilter(1, 1, checkerboard.get()), |
new SkErodeImageFilter(1, 1, checkerboard.get()), |
+ new SkOffsetImageFilter(SkIntToScalar(32), 0), |
}; |
SkVector scales[] = { |
@@ -120,7 +122,9 @@ protected: |
paint.setAntiAlias(true); |
canvas->save(); |
canvas->scale(scales[j].fX, scales[j].fY); |
- canvas->clipRect(bounds); |
+ if (5 == i) { |
+ canvas->translate(SkIntToScalar(-32), 0); |
+ } |
canvas->drawCircle(r.centerX(), r.centerY(), |
SkScalarDiv(r.width()*2, SkIntToScalar(5)), paint); |
canvas->restore(); |