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:
parent
89af44a0f1
commit
2cce421bdf
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user