diff options
Diffstat (limited to 'src/gpu/GrRecordReplaceDraw.cpp')
-rw-r--r-- | src/gpu/GrRecordReplaceDraw.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrRecordReplaceDraw.cpp b/src/gpu/GrRecordReplaceDraw.cpp index d5ddbd0788..bca9255856 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->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()); } } |