Index: src/gpu/GrRecordReplaceDraw.cpp |
diff --git a/src/gpu/GrRecordReplaceDraw.cpp b/src/gpu/GrRecordReplaceDraw.cpp |
index d5ddbd078875e1fb11dc0fdf6ce34299f01fba39..bca92558567cb8438ae6e0406bfe084cdd815840 100644 |
--- a/src/gpu/GrRecordReplaceDraw.cpp |
+++ b/src/gpu/GrRecordReplaceDraw.cpp |
@@ -46,9 +46,9 @@ |
canvas->drawBitmapRect(bm, src, dst, layer->paint(), SkCanvas::kStrict_SrcRectConstraint); |
canvas->restore(); |
} else { |
- canvas->drawBitmap(bm, |
- SkIntToScalar(layer->srcIR().fLeft + layer->offset().fX), |
- SkIntToScalar(layer->srcIR().fTop + layer->offset().fY), |
+ canvas->drawSprite(bm, |
+ layer->srcIR().fLeft + layer->offset().fX, |
+ layer->srcIR().fTop + layer->offset().fY, |
layer->paint()); |
} |
} |