Index: gm/tileimagefilter.cpp |
=================================================================== |
--- gm/tileimagefilter.cpp (revision 12533) |
+++ gm/tileimagefilter.cpp (working copy) |
@@ -70,10 +70,9 @@ |
void drawClippedBitmap(SkCanvas* canvas, const SkBitmap& bitmap, const SkPaint& paint, |
SkScalar x, SkScalar y) { |
canvas->save(); |
- canvas->translate(x, y); |
- canvas->clipRect(SkRect::MakeXYWH(0, 0, |
+ canvas->clipRect(SkRect::MakeXYWH(x, y, |
SkIntToScalar(bitmap.width()), SkIntToScalar(bitmap.height()))); |
- canvas->drawBitmap(bitmap, 0, 0, &paint); |
+ canvas->drawBitmap(bitmap, x, y, &paint); |
canvas->restore(); |
} |