diff options
author | reed <reed@google.com> | 2015-11-04 08:34:07 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-04 08:34:07 -0800 |
commit | 6f45c1714786a54adec156f2416a14aa142adf05 (patch) | |
tree | 9aa6a5a3e76f415db03e25fc8f0c9c7d64e85b69 /src/images | |
parent | 81919d3c67c5cb74e6ff229d185e4508a9b03ef9 (diff) |
Revert[4] of "stop using drawSprite (at least w/ no filters) as it is going away"
This reverts commit 67b8b5e67a427382fed8c5d8b3c70a21ed2492c6.
BUG=skia:
TBR=
Previous revert was due to faulty unittest (now fixed) -- unrelated to this CL.
Review URL: https://codereview.chromium.org/1422703009
Diffstat (limited to 'src/images')
-rw-r--r-- | src/images/SkImageDecoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/images/SkImageDecoder.cpp b/src/images/SkImageDecoder.cpp index daeee9f0b9..60cc44c5b4 100644 --- a/src/images/SkImageDecoder.cpp +++ b/src/images/SkImageDecoder.cpp @@ -206,8 +206,8 @@ bool SkImageDecoder::cropBitmap(SkBitmap *dst, SkBitmap *src, int sampleSize, paint.setXfermodeMode(SkXfermode::kSrc_Mode); SkCanvas canvas(*dst); - canvas.drawSprite(*src, (srcX - dstX) / sampleSize, - (srcY - dstY) / sampleSize, + canvas.drawBitmap(*src, SkIntToScalar((srcX - dstX) / sampleSize), + SkIntToScalar((srcY - dstY) / sampleSize), &paint); return true; } |