Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(680)

Unified Diff: src/image/SkImage.cpp

Issue 599203007: Replace a forgotten call to SkImage::draw() by SkCanvas::drawImageRect() (Closed) Base URL: https://skia.googlesource.com/skia.git@skimagedraw_private
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/image/SkImage.cpp
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp
index 13b6fcd463a8db574b53ffb24af8ef3183fab77e..41ac2165cbaa5756b48259c52ff7498b59163bfc 100644
--- a/src/image/SkImage.cpp
+++ b/src/image/SkImage.cpp
@@ -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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698