Index: src/gpu/GrRecordReplaceDraw.cpp |
diff --git a/src/gpu/GrRecordReplaceDraw.cpp b/src/gpu/GrRecordReplaceDraw.cpp |
index 932e5be6c49f46867b572109070ece1e807e5e4b..b0e00b8a7494b3eaa2e2c9a09cde3ec5ae49de2a 100644 |
--- a/src/gpu/GrRecordReplaceDraw.cpp |
+++ b/src/gpu/GrRecordReplaceDraw.cpp |
@@ -57,12 +57,12 @@ static inline void draw_replacement_bitmap(const GrReplacements::ReplacementInfo |
SkRect src = SkRect::Make(ri->fSrcRect); |
SkRect dst = SkRect::MakeXYWH(SkIntToScalar(ri->fPos.fX), |
SkIntToScalar(ri->fPos.fY), |
- SkIntToScalar(ri->fSrcRect.width()), |
+ SkIntToScalar(ri->fSrcRect.width()), |
SkIntToScalar(ri->fSrcRect.height())); |
canvas->save(); |
canvas->setMatrix(initialMatrix); |
- ri->fImage->draw(canvas, &src, dst, ri->fPaint); |
+ canvas->drawImageRect(ri->fImage, &src, dst, ri->fPaint); |
canvas->restore(); |
} |