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