Replace a forgotten call to SkImage::draw() by SkCanvas::drawImageRect()

BUG=skia:2947
R=reed@google.com, junov@chromium.org

Author: piotaixr@chromium.org

Review URL: https://codereview.chromium.org/599203007
This commit is contained in:
piotaixr 2014-09-26 07:10:38 -07:00 committed by Commit bot
parent 89af44a0f1
commit 2cce421bdf

View File

@ -135,6 +135,6 @@ bool SkImage_Base::onReadPixels(SkBitmap* bitmap, const SkIRect& subset) const {
paint.setXfermodeMode(SkXfermode::kClear_Mode);
canvas.drawRect(dstR, paint);
const_cast<SkImage_Base*>(this)->onDrawRectToRect(&canvas, &srcR, dstR, NULL);
canvas.drawImageRect(this, &srcR, dstR);
return true;
}